File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111from resolver_athena_client .client .models import ImageData
1212from tests .functional .e2e .testcases .parser import (
1313 AthenaTestCase ,
14- load_test_cases ,
14+ load_test_cases_by_env ,
1515)
1616
17- TEST_CASES = load_test_cases ( "integrator_sample" )
17+ TEST_CASES = load_test_cases_by_env ( )
1818
1919FP_ERROR_TOLERANCE = 1e-4
2020
Original file line number Diff line number Diff line change 11import json
2+ import os
23from pathlib import Path
34
45# Path to the shared testcases directory in athena-protobufs
@@ -23,6 +24,12 @@ def __init__(
2324 self .classification_labels : list [str ] = classification_labels
2425
2526
27+ def load_test_cases_by_env () -> list [AthenaTestCase ]:
28+ return load_test_cases (
29+ os .getenv ("ATHENA_E2E_TESTCASE_DIR" , "integrator_sample" )
30+ )
31+
32+
2633def load_test_cases (dirname : str = "benign_model" ) -> list [AthenaTestCase ]:
2734 with Path .open (
2835 Path (TESTCASES_DIR / dirname / "expected_outputs.json" ),
You can’t perform that action at this time.
0 commit comments