Skip to content

Commit

Permalink
Fixed test calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
lauri-codes committed May 3, 2024
1 parent 5ac17eb commit 2839be0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion simulationworkflownormalizer/normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _resolve_workflow(self, archive: EntryArchive):

def normalize(self, archive: EntryArchive, logger=None) -> None:
logger = logger if logger is not None else get_logger(__name__)
super().normalize(logger)
super().normalize(archive, logger)

# Do nothing if run section is not present
if not archive.run:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_simulationworkflownormalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_resolve_workflow_from_program_name(
):
run = Run(program=Program(name=program_name))
entry_archive.run.append(run)
SimulationWorkflowNormalizer(entry_archive).normalize(get_logger(__name__))
SimulationWorkflowNormalizer().normalize(entry_archive, get_logger(__name__))
assert isinstance(entry_archive.workflow2, workflow_class)


Expand All @@ -58,5 +58,5 @@ def test_resolve_workflow_from_calculation(
):
run = Run(calculation=[Calculation() for _ in range(n_calculations)])
entry_archive.run.append(run)
SimulationWorkflowNormalizer(entry_archive).normalize(get_logger(__name__))
SimulationWorkflowNormalizer().normalize(entry_archive, get_logger(__name__))
assert isinstance(entry_archive.workflow2, workflow_class)

0 comments on commit 2839be0

Please sign in to comment.