File tree Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 9494 python-version : " 3.11"
9595 - uses : ./.github/actions/setup-env
9696 - name : Build fixture database
97- run : tox -e json_infra --notest && tox -e json_infra -- python -m tests.json_infra. build_fixture_db
97+ run : tox -e build_fixture_db
9898 - name : Run json infra tests
9999 run : tox -e json_infra
100100 env :
Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ def fetch_blockchain_tests(
194194 """Fetch all blockchain test cases for the specified JSON fork."""
195195 # Try database backend first
196196 if _use_database_backend ():
197+ print (f"Loading blockchain tests for { json_fork } from database" )
197198 query = _get_fixture_query ()
198199 for test_case_data in query .fetch_blockchain_tests (json_fork ):
199200 test_case_dict = test_case_data ["data" ]
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ def fetch_state_tests(json_fork: str) -> Generator:
5353 """
5454 # Try database backend first
5555 if _use_database_backend ():
56+ print (f"Loading state tests for { json_fork } from database" )
5657 query = _get_fixture_query ()
5758 for test_case_data in query .fetch_state_tests (json_fork ):
5859 test_case_dict = test_case_data ["data" ]
Original file line number Diff line number Diff line change @@ -59,6 +59,11 @@ commands =
5959 --basetemp =" {temp_dir}/pytest" \
6060 src
6161
62+ [testenv:build_fixture_db]
63+ description = Build the JSON fixture database
64+ commands =
65+ python -m tests.json_infra.build_fixture_db
66+
6267[testenv:json_infra]
6368description = Run the spec against released test fixtures
6469commands =
You can’t perform that action at this time.
0 commit comments