Skip to content

Commit 14e0e80

Browse files
committed
updates sessions to better handle compliance, migration, mockserver parametrization
1 parent d864543 commit 14e0e80

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

packages/sqlalchemy-spanner/noxfile.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -299,28 +299,6 @@ def _migration_test(session):
299299
os.remove("test.cfg")
300300

301301

302-
@nox.session(python=DEFAULT_PYTHON_VERSION)
303-
def snippets(session):
304-
"""Run the documentation example snippets."""
305-
# Sanity check: Only run snippets system tests if the environment variable
306-
# is set.
307-
if not os.environ.get("GOOGLE_APPLICATION_CREDENTIALS", ""):
308-
session.skip("Credentials must be set via environment variable.")
309-
310-
session.install("pytest")
311-
session.install("sqlalchemy>=1.4,<2.0")
312-
session.install(
313-
"git+https://github.com/googleapis/python-spanner.git#egg=google-cloud-spanner"
314-
)
315-
session.install(".")
316-
session.run("python", "create_test_database.py")
317-
session.run(
318-
"py.test",
319-
"--quiet",
320-
os.path.join("samples", "snippets_test.py"),
321-
*session.posargs,
322-
)
323-
324302
@nox.session(python=ALL_PYTHON)
325303
@nox.parametrize("test_type", ["unit", "mockserver"])
326304
def unit(session, test_type):

0 commit comments

Comments
 (0)