Skip to content

Commit

Permalink
chore: template updates (#120)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/60d94463-5a7c-4c76-829d-2ff8e6f3696f/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

Source-Link: googleapis/synthtool@0a071b3
  • Loading branch information
yoshi-automation authored and dandhlee committed Jan 5, 2023
1 parent 62ff4ec commit 0b8f406
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions documentai/snippets/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,16 @@ def _session_tests(
) -> None:
"""Runs py.test for a particular project."""
if os.path.exists("requirements.txt"):
session.install("-r", "requirements.txt")
if os.path.exists("constraints.txt"):
session.install("-r", "requirements.txt", "-c", "constraints.txt")
else:
session.install("-r", "requirements.txt")

if os.path.exists("requirements-test.txt"):
session.install("-r", "requirements-test.txt")
if os.path.exists("constraints-test.txt"):
session.install("-r", "requirements-test.txt", "-c", "constraints-test.txt")
else:
session.install("-r", "requirements-test.txt")

if INSTALL_LIBRARY_FROM_SOURCE:
session.install("-e", _get_repo_root())
Expand Down

0 comments on commit 0b8f406

Please sign in to comment.