Skip to content

Commit

Permalink
test: use unittest.mock
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed May 19, 2022
1 parent 4589f4e commit 4c55fac
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gapic/templates/noxfile.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/goldens/asset/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/goldens/credentials/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/goldens/eventarc/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/goldens/logging/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/goldens/redis/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4c55fac

Please sign in to comment.