Exemplo n.º 1
0
 def _create_model(self):
     suite = self._create_directory_suite("/top_suite")
     suite.children = [self._create_file_suite("sub_suite_%d.txt" % i) for i in range(3)]
     res = ResourceFile()
     res.source = "resource.txt"
     res.keyword_table.keywords.append(UserKeyword(res, "Resource Keyword"))
     model = ChiefController(Namespace(FakeSettings()))
     model._controller = TestDataDirectoryController(suite)
     rfc = ResourceFileController(res)
     model.resources.append(rfc)
     model._insert_into_suite_structure(rfc)
     return model
Exemplo n.º 2
0
 def _create_model(self):
     suite = self._create_directory_suite('/top_suite')
     suite.children = [self._create_file_suite('sub_suite_%d.txt' % i)
                       for i in range(3)]
     res = ResourceFile()
     res.source = 'resource.txt'
     res.keyword_table.keywords.append(UserKeyword(res, 'Resource Keyword'))
     library_manager = LibraryManager(':memory:')
     library_manager.create_database()
     model = ChiefController(Namespace(FakeSettings()), library_manager=library_manager)
     model._controller = TestDataDirectoryController(suite)
     rfc = ResourceFileController(res, chief_controller=model)
     model.resources.append(rfc)
     model._insert_into_suite_structure(rfc)
     return model
Exemplo n.º 3
0
 def _create_model(self):
     suite = self._create_directory_suite('/top_suite')
     suite.children = [self._create_file_suite('sub_suite_%d.txt' % i)
                       for i in range(3)]
     res = ResourceFile()
     res.source = 'resource.txt'
     res.keyword_table.keywords.append(UserKeyword(res, 'Resource Keyword'))
     library_manager = LibraryManager(':memory:')
     library_manager.create_database()
     model = ChiefController(Namespace(FakeSettings()), library_manager=library_manager)
     model._controller = TestDataDirectoryController(suite)
     rfc = ResourceFileController(res, chief_controller=model)
     model.resources.append(rfc)
     model.insert_into_suite_structure(rfc)
     return model