Skip to content

Commit de6c35f

Browse files
committed
address PR feedback
1 parent 802dd5b commit de6c35f

File tree

2 files changed

+20
-26
lines changed

2 files changed

+20
-26
lines changed

noxfile.py

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -185,33 +185,23 @@ def default(session, install_grpc=True, prerelease=False, install_async_rest=Fal
185185
"python",
186186
"-m",
187187
"pytest",
188+
*(
189+
# Helpful for running a single test or testfile.
190+
session.posargs
191+
or [
192+
"--quiet",
193+
"--cov=google.api_core",
194+
"--cov=tests.unit",
195+
"--cov-append",
196+
"--cov-config=.coveragerc",
197+
"--cov-report=",
198+
"--cov-fail-under=0",
199+
# Running individual tests with parallelism enabled is usually not helpful.
200+
"-n=auto",
201+
os.path.join("tests", "unit"),
202+
]
203+
),
188204
]
189-
pytest_args.extend(["-W", "ignore::FutureWarning"])
190-
191-
pytest_args.extend(
192-
[
193-
# We use filterwarnings to ignore warnings that are out of our control,
194-
# but we want to make sure that our own code does not generate warnings.
195-
"-m",
196-
"not filterwarnings",
197-
*(
198-
# Helpful for running a single test or testfile.
199-
session.posargs
200-
or [
201-
"--quiet",
202-
"--cov=google.api_core",
203-
"--cov=tests.unit",
204-
"--cov-append",
205-
"--cov-config=.coveragerc",
206-
"--cov-report=",
207-
"--cov-fail-under=0",
208-
# Running individual tests with parallelism enabled is usually not helpful.
209-
"-n=auto",
210-
os.path.join("tests", "unit"),
211-
]
212-
),
213-
]
214-
)
215205

216206
session.install("asyncmock", "pytest-asyncio")
217207

pytest.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[pytest]
2+
filterwarnings =
3+
# Remove after support for Python 3.10 is dropped
4+
ignore:.*You are using a Python version \(3\.10:FutureWarning

0 commit comments

Comments
 (0)