Skip to content

Commit

Permalink
fix: review comments remove unnecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nodegard committed Nov 18, 2024
1 parent 266da6e commit 06ee286
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tests_unit/test_data_classes/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@

class TestWorkFlowDefinitions:
def test_upsert_variant_doesnt_accept_hash(self):
tasks = [WorkflowTask(external_id="foo", parameters=TransformationTaskParameters(external_id="something"))]
WorkflowDefinition(tasks=tasks, description="desc", hash_="very-random")
task = WorkflowTask(external_id="foo", parameters=TransformationTaskParameters(external_id="something"))
WorkflowDefinition(tasks=[task], description="desc", hash_="very-random")

with pytest.raises(TypeError, match="unexpected keyword argument 'hash_'$"):
WorkflowDefinitionUpsert(tasks=tasks, description="desc", hash_="very-random")
WorkflowDefinitionUpsert(tasks=[task], description="desc", hash_="very-random")


class TestWorkflowTaskOutput:
Expand Down

0 comments on commit 06ee286

Please sign in to comment.