Skip to content

Commit

Permalink
Merge pull request #33 from TranslatorSRI/0.3.2
Browse files Browse the repository at this point in the history
Add a build version and extra labels for asset info
  • Loading branch information
maximusunc authored Oct 25, 2024
2 parents 4c4c2a9 + a375d04 commit 1ee2910
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="sri-test-harness",
version="0.3.1",
version="0.3.2",
author="Max Wang",
author_email="[email protected]",
url="https://github.com/TranslatorSRI/TestHarness",
Expand Down
2 changes: 1 addition & 1 deletion test_harness/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def download_tests(
tests_paths = glob.glob(f"{tmpdir}/*/test_suites/{suite}.json")

with open(tests_paths[0]) as f:
test_suite = TestSuite.parse_obj(json.load(f))
test_suite = TestSuite.model_validate(json.load(f))

# all_tests = []
# suites = suite if type(suite) == list else [suite]
Expand Down
13 changes: 13 additions & 0 deletions test_harness/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async def create_test_run(self, test_env, suite_name):
"framework": "Translator Automated Testing",
"config": {
"environment": test_env,
"build": "v0.3.2",
},
},
)
Expand Down Expand Up @@ -82,6 +83,18 @@ async def create_test(self, test: TestCase, asset: TestAsset):
"key": "TestAsset",
"value": asset.id,
},
{
"key": "InputCurie",
"value": asset.input_id,
},
{
"key": "OutputCurie",
"value": asset.output_id,
},
{
"key": "ExpectedOutput",
"value": asset.expected_output,
},
],
},
)
Expand Down

0 comments on commit 1ee2910

Please sign in to comment.