示例#1
0
    def setUp(self):
        """Draw the header.

        This is executed before every test.
        No document is needed to test the import of modules so no document
        is created, and `tearDown` isn't defined.
        """
        aux.draw_header()
示例#2
0
    def setUp(self):
        """Set up a new document to hold the tests.

        This is executed before every test, so we create a document
        to hold the objects.
        """
        aux.draw_header()
        self.doc_name = self.__class__.__name__
        if App.ActiveDocument:
            if App.ActiveDocument.Name != self.doc_name:
                App.newDocument(self.doc_name)
        else:
            App.newDocument(self.doc_name)
        App.setActiveDocument(self.doc_name)
        self.doc = App.ActiveDocument
        _msg("  Temporary document '{}'".format(self.doc_name))
示例#3
0
 def setUp(self):
     aux.draw_header()
 def setUp(self):
     """Prepare the test. Nothing to do here, DraftGeomUtils doesn't need a document."""
     aux.draw_header()