Skip to content

Commit

Permalink
fixed test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Dymond committed Nov 28, 2024
1 parent 7829244 commit d6dbc04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions tests/test_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

CONFIG_ROOT = f"{os.path.dirname(os.path.abspath(__file__))}/../config/"

PIPELINE_PATH = f"{CONFIG_ROOT}/RTC_configs/roberta-mt5-zero-shot.yaml"


@pytest.fixture()
def dummy_data():
Expand All @@ -38,8 +40,7 @@ def dummy_metadata():


def test_pipeline_inputs(dummy_data, dummy_metadata):
pipeline_config_path = f"{CONFIG_ROOT}/RTC_configs/bert-mt5-bert.yaml"
pipeline_config = open_yaml_path(pipeline_config_path)
pipeline_config = open_yaml_path(PIPELINE_PATH)

with patch( # noqa: SIM117
"arc_spice.variational_pipelines.RTC_variational_pipeline.pipeline",
Expand Down Expand Up @@ -74,8 +75,7 @@ def test_pipeline_inputs(dummy_data, dummy_metadata):


def test_single_component_inputs(dummy_data, dummy_metadata):
pipeline_config_path = f"{CONFIG_ROOT}/RTC_configs/bert-mt5-bert.yaml"
pipeline_config = open_yaml_path(pipeline_config_path)
pipeline_config = open_yaml_path(PIPELINE_PATH)
dummy_recognise_output = {"outputs": "rec text"}
dummy_translate_output = {"outputs": ["translate text"]}
dummy_classification_output = {"outputs": "classification"}
Expand Down

0 comments on commit d6dbc04

Please sign in to comment.