mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00

- avoid backref warnings by adding objects to session explicitly before creating any relationships - remove unnecessary `[]` around scalar query - use `text()` wrapper on connection.execute - engine.execute is removed - update import of declarative_base - ensure RemovedIn20Warning is available for warnings filters on sqlalchemy < 1.4 (needs editable install to avoid pytest path mismatch) - explicitly relay password in engine.url to alembic
25 lines
771 B
INI
25 lines
771 B
INI
[pytest]
|
|
# pytest 3.10 has broken minversion checks,
|
|
# so we have to disable this until pytest 3.11
|
|
# minversion = 3.3
|
|
|
|
# automatically run coroutine tests with asyncio
|
|
asyncio_mode = auto
|
|
|
|
# jupyter_server plugin is incompatible with notebook imports
|
|
addopts = -p no:jupyter_server -m 'not selenium'
|
|
|
|
python_files = test_*.py
|
|
markers =
|
|
gen_test: marks an async tornado test
|
|
group: mark as a test for groups
|
|
services: mark as a services test
|
|
user: mark as a test for a user
|
|
slow: mark a test as slow
|
|
role: mark as a test for roles
|
|
selenium: web tests that run with selenium
|
|
|
|
filterwarnings =
|
|
error:.*:jupyterhub.tests.utils.RemovedIn20Warning
|
|
ignore:.*event listener has changed as of version 2.0.*:sqlalchemy.exc.SADeprecationWarning
|