tests: run all tests, but exclude tests specific to my computer from CI

controllable via HPI_TESTS_KARLICOSS=true
This commit is contained in:
Dima Gerasimov 2021-02-14 17:31:44 +00:00
parent 6239879245
commit 1d09d0d1ab
21 changed files with 93 additions and 72 deletions

View file

@ -1,16 +1,15 @@
#!/usr/bin/env python3
from .common import skip_if_not_karlicoss as pytestmark
from more_itertools import ilen
from my.coding.github import get_events
# todo test against stats? not sure.. maybe both
def test_gdpr():
def test_gdpr() -> None:
import my.github.gdpr as gdpr
assert ilen(gdpr.events()) > 100
def test():
def test() -> None:
from my.coding.github import get_events
events = get_events()
assert ilen(events) > 100
for e in events: