Runs py.test for a sample using the specified version of Python.
(session: nox.sessions.Session)
| 241 | |
| 242 | @nox.session(python=ALL_VERSIONS) |
| 243 | def py(session: nox.sessions.Session) -> None: |
| 244 | """Runs py.test for a sample using the specified version of Python.""" |
| 245 | if session.python in TESTED_VERSIONS: |
| 246 | _session_tests(session) |
| 247 | else: |
| 248 | session.skip( |
| 249 | "SKIPPED: {} tests are disabled for this sample.".format(session.python) |
| 250 | ) |
| 251 | |
| 252 | |
| 253 | # |
nothing calls this directly
no test coverage detected