tests: run all tests, but exclude tests specific to my computer from CI
controllable via HPI_TESTS_KARLICOSS=true
This commit is contained in:
parent
6239879245
commit
d562f00dca
21 changed files with 93 additions and 72 deletions
|
@ -1,13 +1,16 @@
|
|||
from .common import skip_if_not_karlicoss as pytestmark
|
||||
|
||||
# todo maybe belongs to common
|
||||
from more_itertools import ilen
|
||||
|
||||
from my.lastfm import scrobbles
|
||||
|
||||
|
||||
def test():
|
||||
def test() -> None:
|
||||
from my.lastfm import scrobbles
|
||||
assert ilen(scrobbles()) > 1000
|
||||
|
||||
|
||||
def test_datetime_ascending():
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue