Skip to content

Commit

Permalink
Tweaked unit test sample data; mock tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardBruskiewich committed Apr 26, 2024
1 parent 875fb7c commit 4284cfb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions tests/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
logs/**
!logs/.gitkeep
test_ars.log
6 changes: 3 additions & 3 deletions tests/example_test_inputs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Example tests for the Test Harness."""

from translator_testing_model.datamodel.pydanticmodel import TestSuite, ComponentEnum
from translator_testing_model.datamodel.pydanticmodel import TestSuite

example_acceptance_test_cases = TestSuite.model_validate(
{
Expand Down Expand Up @@ -97,7 +97,7 @@
],
"preconditions": [],
"trapi_template": None,
"components": [ComponentEnum("ars")],
"components": ["ars"],
"test_case_objective": "AcceptanceTest",
"test_case_source": None,
"test_case_predicate_name": "treats",
Expand Down Expand Up @@ -174,7 +174,7 @@
],
"preconditions": [],
"trapi_template": None,
"components": [ComponentEnum("molepro")],
"components": ["arax", "molepro"],
"test_case_objective": "OneHopTest",
"test_case_source": None,
"test_case_predicate_name": "affects",
Expand Down
4 changes: 2 additions & 2 deletions tests/example_test_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
}
},
"TestAsset_1-raise_object_by_subject": {
"molepro": {
"arax": {
"status": "FAILED",
"messages": {
"error": {
Expand All @@ -106,7 +106,7 @@
}
},
"TestAsset_1-raise_predicate_by_subject": {
"molepro": {
"arax": {
"status": "FAILED",
"messages": {
"critical": {
Expand Down
4 changes: 2 additions & 2 deletions tests/test_run.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

from test_harness.run import run_tests
from .example_test_outputs import example_one_hops_test_output
from .example_test_inputs import (
from example_test_outputs import example_one_hops_test_output
from example_test_inputs import (
example_acceptance_test_cases,
example_one_hop_test_cases
)
Expand Down

0 comments on commit 4284cfb

Please sign in to comment.