Skip to content

Commit 2f106c9

Browse files
committed
more logging, use passenv
1 parent a5916af commit 2f106c9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

tests/json_infra/conftest.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,15 @@ def pytest_sessionstart(session: Session) -> None:
262262

263263
# Build fixture database after downloading fixtures
264264
if os.getenv("EELS_USE_FIXTURE_DB") == "1":
265-
print("Building fixture database...")
265+
print("Building fixture database...", flush=True)
266+
import sys
267+
268+
sys.stdout.flush()
266269
from .build_fixture_db import main as build_db
267270

268271
build_db()
272+
print("Database build complete!", flush=True)
273+
sys.stdout.flush()
269274

270275

271276
def pytest_sessionfinish(session: Session, exitstatus: int) -> None:

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ commands =
6666

6767
[testenv:json_infra]
6868
description = Run the spec against released test fixtures
69+
passenv =
70+
EELS_USE_FIXTURE_DB
6971
commands =
7072
pytest \
7173
-m "not slow" \

0 commit comments

Comments
 (0)