Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang1127 committed Sep 17, 2024
1 parent 7673a5c commit 574e80c
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions library_generation/test/cli/entry_point_unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,13 @@ def test_generate_non_monorepo_without_changes_triggers_full_generation(
baseline_generation_config_path=config_path,
current_generation_config_path=config_path,
repository_path=".",
api_definition_path=".",
)
generate_from_yaml.assert_called_with(
config=ANY, repository_path=ANY, target_library_names=None
config=ANY,
repository_path=ANY,
api_definition_path=ANY,
target_library_names=None,
)

@patch("library_generation.cli.entry_point.generate_from_yaml")
Expand All @@ -134,9 +138,13 @@ def test_generate_non_monorepo_with_changes_triggers_full_generation(
baseline_generation_config_path=baseline_config_path,
current_generation_config_path=current_config_path,
repository_path=".",
api_definition_path=".",
)
generate_from_yaml.assert_called_with(
config=ANY, repository_path=ANY, target_library_names=None
config=ANY,
repository_path=ANY,
api_definition_path=ANY,
target_library_names=None,
)

@patch("library_generation.cli.entry_point.generate_from_yaml")
Expand All @@ -160,9 +168,13 @@ def test_generate_monorepo_with_common_protos_triggers_full_generation(
baseline_generation_config_path=config_path,
current_generation_config_path=config_path,
repository_path=".",
api_definition_path=".",
)
generate_from_yaml.assert_called_with(
config=ANY, repository_path=ANY, target_library_names=None
config=ANY,
repository_path=ANY,
api_definition_path=ANY,
target_library_names=None,
)

@patch("library_generation.cli.entry_point.generate_from_yaml")
Expand All @@ -187,7 +199,11 @@ def test_generate_monorepo_without_common_protos_does_not_trigger_full_generatio
baseline_generation_config_path=config_path,
current_generation_config_path=config_path,
repository_path=".",
api_definition_path=".",
)
generate_from_yaml.assert_called_with(
config=ANY, repository_path=ANY, target_library_names=[]
config=ANY,
repository_path=ANY,
api_definition_path=ANY,
target_library_names=[],
)

0 comments on commit 574e80c

Please sign in to comment.