From 4c55fac0b796635ba24b1ae2ed741685f1645b58 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 19 May 2022 18:47:28 +0000 Subject: [PATCH] test: use unittest.mock --- gapic/templates/noxfile.py.j2 | 2 +- tests/integration/goldens/asset/noxfile.py | 2 +- tests/integration/goldens/credentials/noxfile.py | 2 +- tests/integration/goldens/eventarc/noxfile.py | 2 +- tests/integration/goldens/logging/noxfile.py | 2 +- tests/integration/goldens/redis/noxfile.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gapic/templates/noxfile.py.j2 b/gapic/templates/noxfile.py.j2 index cd00e5e3d7..994c793256 100644 --- a/gapic/templates/noxfile.py.j2 +++ b/gapic/templates/noxfile.py.j2 @@ -44,7 +44,7 @@ nox.sessions = [ def unit(session): """Run the unit test suite.""" - session.install('coverage', 'pytest', 'pytest-cov', 'pytest-asyncio', 'asyncmock; python < "3.8"') + session.install('coverage', 'pytest', 'pytest-cov', 'pytest-asyncio', 'asyncmock; python_version < "3.8"') session.install('-e', '.') session.run( diff --git a/tests/integration/goldens/asset/noxfile.py b/tests/integration/goldens/asset/noxfile.py index 10d56356b4..7b144a0216 100644 --- a/tests/integration/goldens/asset/noxfile.py +++ b/tests/integration/goldens/asset/noxfile.py @@ -55,7 +55,7 @@ def unit(session): """Run the unit test suite.""" - session.install('coverage', 'pytest', 'pytest-cov', 'pytest-asyncio', 'asyncmock; python < "3.8"') + session.install('coverage', 'pytest', 'pytest-cov', 'pytest-asyncio', 'asyncmock; python_version < "3.8"') session.install('-e', '.') session.run( diff --git a/tests/integration/goldens/credentials/noxfile.py b/tests/integration/goldens/credentials/noxfile.py index ab8d22a84f..7dc0b7b5be 100644 --- a/tests/integration/goldens/credentials/noxfile.py +++ b/tests/integration/goldens/credentials/noxfile.py @@ -55,7 +55,7 @@ def unit(session): """Run the unit test suite.""" - session.install('coverage', 'pytest', 'pytest-cov', 'pytest-asyncio', 'asyncmock; python < "3.8"') + session.install('coverage', 'pytest', 'pytest-cov', 'pytest-asyncio', 'asyncmock; python_version < "3.8"') session.install('-e', '.') session.run( diff --git a/tests/integration/goldens/eventarc/noxfile.py b/tests/integration/goldens/eventarc/noxfile.py index 5da1cc28df..05e8b9a457 100644 --- a/tests/integration/goldens/eventarc/noxfile.py +++ b/tests/integration/goldens/eventarc/noxfile.py @@ -55,7 +55,7 @@ def unit(session): """Run the unit test suite.""" - session.install('coverage', 'pytest', 'pytest-cov', 'pytest-asyncio', 'asyncmock; python < "3.8"') + session.install('coverage', 'pytest', 'pytest-cov', 'pytest-asyncio', 'asyncmock; python_version < "3.8"') session.install('-e', '.') session.run( diff --git a/tests/integration/goldens/logging/noxfile.py b/tests/integration/goldens/logging/noxfile.py index fd1ef73b74..2cf8ceab48 100644 --- a/tests/integration/goldens/logging/noxfile.py +++ b/tests/integration/goldens/logging/noxfile.py @@ -55,7 +55,7 @@ def unit(session): """Run the unit test suite.""" - session.install('coverage', 'pytest', 'pytest-cov', 'pytest-asyncio', 'asyncmock; python < "3.8"') + session.install('coverage', 'pytest', 'pytest-cov', 'pytest-asyncio', 'asyncmock; python_version < "3.8"') session.install('-e', '.') session.run( diff --git a/tests/integration/goldens/redis/noxfile.py b/tests/integration/goldens/redis/noxfile.py index fa9a6785c2..d376055b24 100644 --- a/tests/integration/goldens/redis/noxfile.py +++ b/tests/integration/goldens/redis/noxfile.py @@ -55,7 +55,7 @@ def unit(session): """Run the unit test suite.""" - session.install('coverage', 'pytest', 'pytest-cov', 'pytest-asyncio', 'asyncmock; python < "3.8"') + session.install('coverage', 'pytest', 'pytest-cov', 'pytest-asyncio', 'asyncmock; python_version < "3.8"') session.install('-e', '.') session.run(