Skip to content

Commit a34db24

Browse files
authored
Merge pull request #70 from AluisioASG/fix-tests-under-nixos
tests: fix imports and test collection under some environments
2 parents ebb3cd4 + 6fdb64d commit a34db24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

json_logging/framework/quart/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
def is_quart_present():
1313
# noinspection PyPep8,PyBroadException
1414
try:
15-
import quart
15+
from quart import Quart
1616
return True
1717
except:
1818
return False

tests/smoketests/test_run_smoketest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def collect_backends():
2626
yield preset_backend
2727
else:
2828
for folder in Path(__file__).parent.iterdir():
29-
if folder.is_dir():
29+
if folder.is_dir() and folder.name != '__pycache__':
3030
yield str(folder.name)
3131

3232

0 commit comments

Comments
 (0)