nvchecker/tests/test_cache.py
2018-10-10 17:35:18 +08:00

13 lines
354 B
Python

# MIT licensed
# Copyright (c) 2018 lilydjwg <lilydjwg@gmail.com>, et al.
import pytest
pytestmark = pytest.mark.asyncio
async def test_cache(get_version):
a = await get_version("a", {"cmd": "date +%%Y-%%m-%%d"})
b = await get_version("b", {"cmd": "date +%%Y-%%m-%%d"})
c = await get_version("c", {"cmd": "date"})
assert a == b
assert a != c