File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -519,21 +519,37 @@ def test_walk_through_owlbot_dirs_excluded(mock_subproc_popen):
519519 with util .copied_fixtures_dir (
520520 FIXTURES / "nodejs_mono_repo_with_staging"
521521 ) as workdir :
522- excluded_dir = workdir / "core" / "generator" / "gapic-generator-typescript" / "test-fixtures" / "speech"
522+ excluded_dir = (
523+ workdir
524+ / "core"
525+ / "generator"
526+ / "gapic-generator-typescript"
527+ / "test-fixtures"
528+ / "speech"
529+ )
523530 excluded_dir .mkdir (parents = True )
524531 (excluded_dir / ".OwlBot.yaml" ).touch ()
525532
526533 regular_dir = workdir / "core" / "generator" / "gapic-generator-typescript"
527- regular_dir .mkdir (parents = True )
534+ regular_dir .mkdir (parents = True , exist_ok = True )
528535 (regular_dir / ".OwlBot.yaml" ).touch ()
529536
530537 owlbot_dirs = node_mono_repo .walk_through_owlbot_dirs (
531538 workdir , search_for_changed_files = False
532539 )
533540
534541 assert not mock_subproc_popen .called
535- assert any (re .search ("core/generator/gapic-generator-typescript$" , d ) for d in owlbot_dirs )
536- assert not any (re .search ("core/generator/gapic-generator-typescript/test-fixtures/speech" , d ) for d in owlbot_dirs )
542+ assert any (
543+ re .search ("core/generator/gapic-generator-typescript$" , d )
544+ for d in owlbot_dirs
545+ )
546+ assert not any (
547+ re .search (
548+ "core/generator/gapic-generator-typescript/test-fixtures/speech" ,
549+ d ,
550+ )
551+ for d in owlbot_dirs
552+ )
537553
538554
539555@patch ("subprocess.run" )
You can’t perform that action at this time.
0 commit comments