reflect cachew changes of exception handling and temporary suppression

This commit is contained in:
Dima Gerasimov 2020-10-04 21:35:24 +01:00 committed by karlicoss
parent d3f2551560
commit ced93e6942
12 changed files with 29 additions and 46 deletions

View file

@ -1,9 +1,6 @@
#!/usr/bin/env python3
from pathlib import Path
from my.core.cachew import disable_cachew
disable_cachew() # meh
def test() -> None:
from my.bluemaestro import measurements

8
tests/conftest.py Normal file
View file

@ -0,0 +1,8 @@
import pytest # type: ignore
# I guess makes sense by default
@pytest.fixture(autouse=True)
def without_cachew():
from my.core.cachew import disabled_cachew
with disabled_cachew():
yield

View file

@ -1,7 +1,3 @@
from my.core.cachew import disable_cachew
# TODO need something nicer and integrated inside cachew..
disable_cachew() # meh
from more_itertools import ilen
from my.lastfm import scrobbles

View file

@ -3,9 +3,6 @@ from datetime import datetime
from itertools import islice
import pytz
from my.core.cachew import disable_cachew
disable_cachew()
import my.location.takeout as LT
from my.google.takeout.html import read_html
from my.google.takeout.paths import get_last_takeout