def setUp(self): with script.TemporaryScript('tags.py', AVOCADO_TEST_TAGS, 'avocado_loader_unittest', DEFAULT_NON_EXEC_MODE) as test_script: this_loader = loader.FileLoader(None, {}) self.test_suite = this_loader.discover(test_script.path, loader.DiscoverMode.ALL)
def test_filter_tags_include_empty(self): with script.TemporaryScript('passtest.py', AVOCADO_TEST_OK, 'avocado_loader_unittest', DEFAULT_NON_EXEC_MODE) as test_script: this_loader = loader.FileLoader(None, {}) test_suite = this_loader.discover(test_script.path, loader.DiscoverMode.ALL) self.assertEqual([], loader.filter_test_tags(test_suite, [], False, False)) self.assertEqual(test_suite, loader.filter_test_tags(test_suite, [], True, False))
def setUp(self): self.loader = loader.FileLoader(None, {}) self.tmpdir = tempfile.mkdtemp(prefix='avocado_' + __name__)
def setUp(self): self.loader = loader.FileLoader(None, {}) self.queue = multiprocessing.Queue() self.tmpdir = tempfile.mkdtemp(prefix='avocado_' + __name__)
def setUp(self): self.loader = loader.FileLoader({}) self.queue = multiprocessing.Queue()
def setUp(self): self.loader = loader.FileLoader(None, {}) prefix = temp_dir_prefix(self) self.tmpdir = tempfile.TemporaryDirectory(prefix=prefix)
def setUp(self): self.loader = loader.FileLoader(None, {}) prefix = temp_dir_prefix(__name__, self, 'setUp') self.tmpdir = tempfile.mkdtemp(prefix=prefix)