@@ -159,19 +159,12 @@ def default(session, install_grpc=True, prerelease=False, install_async_rest=Fal
159159 if not pathlib .Path (constraints_file ).exists ():
160160 constraints_file = f"{ constraints_dir } /constraints-{ session .python } .txt"
161161
162- if not install_grpc and not install_async_rest :
163- session .install (
164- "google-api-core" ,
165- "-c" ,
166- constraints_file ,
167- )
168- else :
169- session .install (
170- "-e" ,
171- lib_with_extras ,
172- "-c" ,
173- constraints_file ,
174- )
162+ session .install (
163+ "-e" ,
164+ lib_with_extras ,
165+ "-c" ,
166+ constraints_file ,
167+ )
175168
176169 # Print out package versions of dependencies
177170 session .run (
@@ -193,31 +186,32 @@ def default(session, install_grpc=True, prerelease=False, install_async_rest=Fal
193186 "-m" ,
194187 "pytest" ,
195188 ]
196- if not install_grpc and not install_async_rest :
197- pytest_args .extend (["-W" , "ignore::FutureWarning" ])
198-
199- pytest_args .extend ([
200- # We use filterwarnings to ignore warnings that are out of our control,
201- # but we want to make sure that our own code does not generate warnings.
202- "-m" ,
203- "not filterwarnings" ,
204- * (
205- # Helpful for running a single test or testfile.
206- session .posargs
207- or [
208- "--quiet" ,
209- "--cov=google.api_core" ,
210- "--cov=tests.unit" ,
211- "--cov-append" ,
212- "--cov-config=.coveragerc" ,
213- "--cov-report=" ,
214- "--cov-fail-under=0" ,
215- # Running individual tests with parallelism enabled is usually not helpful.
216- "-n=auto" ,
217- os .path .join ("tests" , "unit" ),
218- ]
219- ),
220- ])
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+ )
221215
222216 session .install ("asyncmock" , "pytest-asyncio" )
223217
0 commit comments