nvchecker/tests/test_cache.py

19 lines
341 B
Python
Raw Normal View History

2018-10-10 09:34:06 +00:00
# MIT licensed
2020-08-17 07:11:14 +00:00
# Copyright (c) 2020 lilydjwg <lilydjwg@gmail.com>, et al.
2018-10-10 09:34:06 +00:00
import pytest
pytestmark = pytest.mark.asyncio
2020-08-17 07:11:14 +00:00
async def test_cache(run_str_multi):
conf = r'''
[cache-1]
source = "cmd"
cmd = "echo $RANDOM"
[cache-2]
source = "cmd"
cmd = "echo $RANDOM"'''
r = await run_str_multi(conf)
assert r['cache-1'] == r['cache-2']