mirror of
https://github.com/lilydjwg/nvchecker
synced 2024-12-24 07:32:40 +00:00
20 lines
379 B
Python
20 lines
379 B
Python
# MIT licensed
|
|
# Copyright (c) 2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
|
|
|
import pytest
|
|
pytestmark = pytest.mark.asyncio(scope="session")
|
|
|
|
async def test_cache(run_str_multi):
|
|
conf = r'''
|
|
[cache-1]
|
|
source = "cmd"
|
|
cmd = "bash -c 'echo $RANDOM'"
|
|
|
|
[cache-2]
|
|
source = "cmd"
|
|
cmd = "bash -c 'echo $RANDOM'"
|
|
'''
|
|
|
|
r = await run_str_multi(conf)
|
|
assert r['cache-1'] == r['cache-2']
|