mirror of
https://github.com/lilydjwg/nvchecker
synced 2024-12-28 01:22:24 +00:00
13 lines
354 B
Python
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
|