Skip to content

Commit b87d072

Browse files
committed
tests: enable emulator tests
1 parent 87f6e06 commit b87d072

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

packages/google-cloud-ndb/noxfile.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,11 @@ def cover(session):
198198
session.run("coverage", "erase")
199199

200200

201-
@nox.session(name="old-emulator-system", python=EMULTATOR_INTERPRETERS)
202201
def old_emulator_system(session):
203202
emulator_args = ["gcloud", "beta", "emulators", "datastore", "start"]
204203
_run_emulator(session, emulator_args)
205204

206205

207-
@nox.session(name="emulator-system", python=EMULTATOR_INTERPRETERS)
208206
def emulator_system(session):
209207
emulator_args = [
210208
"gcloud",
@@ -400,9 +398,21 @@ def doctest(session):
400398
session.run(*run_args)
401399

402400

403-
# Run the system tests
401+
# Run the system/emulator tests
404402
@nox.session(py="3.12")
405-
def system(session):
403+
@nox.parametrize("test_type", ["system_default", "emulator_system", "old_emulator_system"])
404+
def system(session, test_type):
405+
"""Run the system/emulator tests."""
406+
test_map = {
407+
"system_default": system_default,
408+
"emulator_system": emulator_system,
409+
"old_emulator_system": old_emulator_system,
410+
}
411+
412+
test_map[test_type](session)
413+
414+
415+
def system_default(session):
406416
"""Run the system test suite."""
407417
constraints_path = str(
408418
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"

0 commit comments

Comments
 (0)