Esempio n. 1
0
 def setUpClass(cls):
     cls.tcf = _build_test_case_file()
     cls.tcf_ctrl = DataController(cls.tcf, None)
     cls.kw = cls.tcf_ctrl.keywords[0]
     cls.ns = Namespace(FakeSettings())
     cls.library_manager = LibraryManager(':memory:')
     cls.library_manager.start()
     cls.library_manager.create_database()
     cls.ns.set_library_manager(cls.library_manager)
Esempio n. 2
0
 def _get_controller(self, source):
     return DataController(TestCaseFile(source=source).populate(), None)
Esempio n. 3
0
 def _assert_contains(self, name):
     controller = DataController(TestCaseFile(), None)
     for val in self.app.namespace.get_suggestions_for(controller, 'given'):
         if val.name == name:
             return
     raise AssertionError()