Skip to content

Commit 13b2028

Browse files
authored
fix: fix snippetgen golden file (googleapis#1170)
I accidentally merged googleapis#1134 without updating the golden files for snippetgen. This PR updates the golden files and marks the 'snippetgen' check required.
1 parent 4ea2d11 commit 13b2028

File tree

4 files changed

+616
-20
lines changed

4 files changed

+616
-20
lines changed

.github/sync-repo-settings.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ branchProtectionRules:
2424
- 'showcase-unit-add-iam-methods'
2525
- 'integration'
2626
- 'style-check'
27+
- 'snippetgen'
2728
- 'unit (3.6)'
2829
- 'unit (3.7)'
2930
- 'unit (3.8)'

tests/snippetgen/goldens/mollusca_generated_mollusca_v1_snippets_list_resources_async.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,9 @@ async def sample_list_resources():
3232
client = mollusca_v1.SnippetsAsyncClient()
3333

3434
# Initialize request argument(s)
35-
item_id = "item_id_value"
36-
part_id = "part_id_value"
37-
parent = f"items/{item_id}/parts/{part_id}"
38-
39-
item_id = "item_id_value"
40-
part_id = "part_id_value"
41-
resource_with_wildcard = f"items/{item_id}/parts/{part_id}"
42-
4335
request = mollusca_v1.ListResourcesRequest(
44-
parent=parent,
45-
resource_with_wildcard=resource_with_wildcard,
36+
parent="parent_value",
37+
resource_with_wildcard="resource_with_wildcard_value",
4638
)
4739

4840
# Make the request

tests/snippetgen/goldens/mollusca_generated_mollusca_v1_snippets_list_resources_sync.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,9 @@ def sample_list_resources():
3232
client = mollusca_v1.SnippetsClient()
3333

3434
# Initialize request argument(s)
35-
item_id = "item_id_value"
36-
part_id = "part_id_value"
37-
parent = f"items/{item_id}/parts/{part_id}"
38-
39-
item_id = "item_id_value"
40-
part_id = "part_id_value"
41-
resource_with_wildcard = f"items/{item_id}/parts/{part_id}"
42-
4335
request = mollusca_v1.ListResourcesRequest(
44-
parent=parent,
45-
resource_with_wildcard=resource_with_wildcard,
36+
parent="parent_value",
37+
resource_with_wildcard="resource_with_wildcard_value",
4638
)
4739

4840
# Make the request

0 commit comments

Comments
 (0)