Skip to content

Commit

Permalink
fix: re-generated v3 client and fix system.py (#76)
Browse files Browse the repository at this point in the history
* fix: re-generated v3 client

* fix: skip v2 client system test for mtls testing
  • Loading branch information
arithmetic1728 authored and dandhlee committed Nov 18, 2022
1 parent 266ebe0 commit bbe9783
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions translation/samples/snippets/hybrid_glossaries/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ def _get_repo_root():
break
if Path(p / ".git").exists():
return str(p)
# .git is not available in repos cloned via Cloud Build
# setup.py is always in the library's root, so use that instead
# https://github.com/googleapis/synthtool/issues/792
if Path(p / "setup.py").exists():
return str(p)
p = p.parent
raise Exception("Unable to detect repository root.")

Expand Down
11 changes: 8 additions & 3 deletions translation/samples/snippets/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ def py(session):
if session.python in TESTED_VERSIONS:
_session_tests(session)
else:
session.skip(
"SKIPPED: {} tests are disabled for this sample.".format(session.python)
)
session.skip("SKIPPED: {} tests are disabled for this sample.".format(
session.python
))


#
Expand All @@ -199,6 +199,11 @@ def _get_repo_root():
break
if Path(p / ".git").exists():
return str(p)
# .git is not available in repos cloned via Cloud Build
# setup.py is always in the library's root, so use that instead
# https://github.com/googleapis/synthtool/issues/792
if Path(p / "setup.py").exists():
return str(p)
p = p.parent
raise Exception("Unable to detect repository root.")

Expand Down

0 comments on commit bbe9783

Please sign in to comment.