reflect cachew changes of exception handling and temporary suppression
This commit is contained in:
parent
d3f2551560
commit
ced93e6942
12 changed files with 29 additions and 46 deletions
|
@ -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
8
tests/conftest.py
Normal 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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue