my.bluemaestro: run against testdata, add on CI
This commit is contained in:
parent
e63c159b80
commit
6242307d7a
7 changed files with 49 additions and 20 deletions
|
@ -1,6 +1,25 @@
|
|||
#!/usr/bin/env python3
|
||||
from my.bluemaestro import measurements, _get_exports
|
||||
from pathlib import Path
|
||||
|
||||
from my.core.cachew import disable_cachew
|
||||
disable_cachew() # meh
|
||||
|
||||
|
||||
def test():
|
||||
print(list(measurements(_get_exports()[-1:])))
|
||||
def test() -> None:
|
||||
from my.bluemaestro import measurements
|
||||
res = list(measurements())
|
||||
assert len(res) > 1000
|
||||
|
||||
|
||||
import pytest # type: ignore
|
||||
@pytest.fixture(autouse=True)
|
||||
def prepare():
|
||||
testdata = Path(__file__).absolute().parent.parent / 'testdata'
|
||||
bmdata = testdata / 'hpi-testdata' / 'bluemaestro'
|
||||
assert bmdata.exists(), bmdata
|
||||
|
||||
from my.cfg import config
|
||||
class user_config:
|
||||
export_path = bmdata
|
||||
config.bluemaestro = user_config # type: ignore
|
||||
yield
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue