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)
def create_project(): library_manager = LibraryManager(':memory:') library_manager.create_database() return Project(Namespace(FakeSettings()), FakeSettings(), library_manager)
def test_bundle_path_is_removed_when_using_installed_rf_libraries(mock_func): namespace.Namespace(FakeSettings({'use installed robot libraries': True})) mock_func.assert_called_once_with(None) assert_true(namespace.REMOTE_LIB_PATH in sys.path) assert_false(namespace.BUNDLED_LIBRARIES_PATH in sys.path)
def create_chief(): library_manager = LibraryManager(':memory:') library_manager.create_database() return ChiefController(Namespace(FakeSettings()), FakeSettings(), library_manager)