Skip to content

Commit e527cae

Browse files
committed
fix test
1 parent ed3ab9a commit e527cae

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.generator/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,9 @@ def _generate_api(
775775
_run_protoc_command(command, source)
776776

777777
# 3. Determine staging location
778-
staging_child_directory = _get_staging_child_directory(api_path, is_proto_only_library)
778+
staging_child_directory = _get_staging_child_directory(
779+
api_path, is_proto_only_library
780+
)
779781
staging_dir = os.path.join(
780782
output, "owl-bot-staging", library_id, staging_child_directory
781783
)

.generator/test_cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1440,4 +1440,6 @@ def test_stage_gapic_library(mocker):
14401440
_stage_gapic_library(tmp_dir, staging_dir)
14411441

14421442
# Assertion: Check copytree was called exactly once with the correct arguments
1443-
mock_shutil_copytree.assert_called_once_with(tmp_dir, staging_dir)
1443+
mock_shutil_copytree.assert_called_once_with(
1444+
tmp_dir, staging_dir, dirs_exist_ok=True
1445+
)

0 commit comments

Comments
 (0)