def setUp(self): self.content = {"some": "stuff", "foo/bar": "baz"} self.content_dir = shared.create_dir(self.content) self.cache_root = shared.create_dir() self.plugin_context = plugin.PluginContext( cwd='.', plugin_cache_root=self.cache_root, parallelism_semaphore=asyncio.BoundedSemaphore( plugin.DEFAULT_PARALLEL_FETCH_LIMIT), plugin_cache_locks=defaultdict(asyncio.Lock), tmp_root=shared.create_dir()) plugin.debug_assert_clean_parallel_count()
def tearDown(self): plugin.debug_assert_clean_parallel_count()
def tearDown(self): # Make sure nothing is fishy with the jobs counter. No sense in # resetting the max here, because the rest of our tests don't know to # reset it anyway. plugin.debug_assert_clean_parallel_count()
def setUp(self): # Make sure nothing is fishy with the jobs counter, and reset the max. plugin.debug_assert_clean_parallel_count() plugin.DEBUG_PARALLEL_MAX = 0