Skip to content

Commit 71655ea

Browse files
committed
fix(config): configure parser mock in config reader unit test to be called with the config file path
1 parent 8dda0d7 commit 71655ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/initialize/application/test_config_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_should_read_existing_configuration_from_file(self) -> None:
2020
config = ConfigurationSchemaMother.any()
2121

2222
expect_call(configuration_repository).read(config_file_path).returns(config.to_primitives())
23-
expect_call(configuration_parser).parse(config.to_primitives()).returns(config)
23+
expect_call(configuration_parser).parse(config.to_primitives(), config_file_path).returns(config)
2424

2525
parsed_config = config_reader.execute(config_file_path)
2626

0 commit comments

Comments
 (0)