HPI/tests/lastfm.py
Dima Gerasimov d562f00dca tests: run all tests, but exclude tests specific to my computer from CI
controllable via HPI_TESTS_KARLICOSS=true
2021-02-14 17:47:18 +00:00

16 lines
398 B
Python

from .common import skip_if_not_karlicoss as pytestmark
# todo maybe belongs to common
from more_itertools import ilen
def test() -> None:
from my.lastfm import scrobbles
assert ilen(scrobbles()) > 1000
def test_datetime_ascending() -> None:
from my.lastfm import scrobbles
from more_itertools import pairwise
for a, b in pairwise(scrobbles()):
assert a.dt <= b.dt