Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
Testing nox stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-strzelczyk committed Jul 23, 2021
1 parent aed9059 commit e2a3fb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/snippets/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@

# Update the TEST_CONFIG with the user supplied values.
TEST_CONFIG.update(TEST_CONFIG_OVERRIDE)
print('Using test config: ', TEST_CONFIG)


def get_pytest_env_vars() -> Dict[str, str]:
Expand Down Expand Up @@ -196,6 +197,8 @@ def _session_tests(session: nox.sessions.Session, post_install: Callable = None)
if post_install:
post_install(session)

print('Testing with envs: ', get_pytest_env_vars())

session.run(
"pytest",
*(PYTEST_COMMON_ARGS + session.posargs),
Expand Down
1 change: 1 addition & 0 deletions samples/snippets/noxfile_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
# Tests in test_sample_default_values.py require separate projects to not interfere with each other.
'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
}
print('Noxfile_config loaded')

0 comments on commit e2a3fb8

Please sign in to comment.