Skip to content

Commit ddcb72b

Browse files
committed
common proto repo should not run entire codegen
1 parent 5a7c2fc commit ddcb72b

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

sdk-platform-java/hermetic_build/library_generation/tests/cli/entry_point_unit_tests.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -155,36 +155,6 @@ def test_generate_non_monorepo_with_library_names_full_generation(
155155
target_api_path=None,
156156
)
157157

158-
@patch("library_generation.cli.entry_point.generate_from_yaml")
159-
def test_generate_monorepo_with_common_protos_with_library_names_triggers_full_generation(
160-
self,
161-
generate_from_yaml,
162-
):
163-
"""
164-
this tests confirms the behavior of generation of a monorepo with
165-
common protos.
166-
target_library_names is the same as includes.
167-
"""
168-
config_path = f"{test_resource_dir}/monorepo_with_common_protos.yaml"
169-
self.assertTrue(GenerationConfig.from_yaml(config_path).is_monorepo())
170-
# we call the implementation method directly since click
171-
# does special handling when a method is annotated with @main.command()
172-
generate_impl(
173-
generation_config_path=config_path,
174-
generation_input=None,
175-
library_names="iam,non-existent-library",
176-
api_path=None,
177-
repository_path=".",
178-
api_definitions_path=".",
179-
)
180-
generate_from_yaml.assert_called_with(
181-
config=ANY,
182-
repository_path=ANY,
183-
api_definitions_path=ANY,
184-
target_library_names=None,
185-
target_api_path=None,
186-
)
187-
188158
@patch("library_generation.cli.entry_point.generate_from_yaml")
189159
def test_generate_monorepo_without_library_names_trigger_full_generation(
190160
self,

0 commit comments

Comments
 (0)