def _session_tests(session, sample):
 session.install('-r', 'testing/requirements.txt')
 session.install(GCP_REPO_TOOLS_REQ)
 session.chdir(sample)
 if os.path.exists(os.path.join(sample, 'requirements.txt')):
  session.install('-r', 'requirements.txt')
 session.run('pytest', *(PYTEST_COMMON_ARGS + session.posargs))

def _session_tests ( session , sample ) : session . install ( '-r' , 'testing/requirements.txt' ) session . install ( GCP_REPO_TOOLS_REQ ) session . chdir ( sample ) if os . path . exists ( os . path . join ( sample , 'requirements.txt' ) ) : session . install ( '-r' , 'requirements.txt' ) session . run ( 'pytest' , * ( PYTEST_COMMON_ARGS + session . posargs ) )
runs py .