mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
tests: fix clear_cache arg
This commit is contained in:
parent
10e3478b12
commit
e2fb91d3fb
1 changed files with 4 additions and 4 deletions
|
@ -23,11 +23,11 @@ class TestSource(Source):
|
||||||
self._future.set_exception(exc)
|
self._future.set_exception(exc)
|
||||||
|
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
async def run_source(*, clear_cache=False):
|
async def run_source():
|
||||||
if clear_cache:
|
async def __call__(conf, *, clear_cache=False):
|
||||||
_cache.clear()
|
if clear_cache:
|
||||||
|
_cache.clear()
|
||||||
|
|
||||||
async def __call__(conf):
|
|
||||||
future = asyncio.Future()
|
future = asyncio.Future()
|
||||||
file = io.StringIO(conf)
|
file = io.StringIO(conf)
|
||||||
file.name = '<StringIO>'
|
file.name = '<StringIO>'
|
||||||
|
|
Loading…
Add table
Reference in a new issue