Skip to content

Commit

Permalink
test mock object tweak for property string fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ankona committed Oct 21, 2024
1 parent ae2446e commit 78a3a33
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/test_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,11 @@ def files():
def mock_job() -> unittest.mock.MagicMock:
"""Fixture to create a mock Job."""
job = unittest.mock.MagicMock(
**{
"entity": EchoHelloWorldEntity(),
"name": "test_job",
"get_launch_steps": unittest.mock.MagicMock(
side_effect=lambda: NotImplementedError()
),
},
get_launch_steps=unittest.mock.MagicMock(
side_effect=lambda: NotImplementedError()
),
entity=EchoHelloWorldEntity(),
name="test_job",
spec=Job,
)
yield job
Expand Down

0 comments on commit 78a3a33

Please sign in to comment.