Commit Graph

110 Commits

Author SHA1 Message Date
Benjamin Dauvergne d658eba701 import pylint config from w.c.s. and simplify launch (#51639) 2021-04-01 07:45:17 +02:00
Valentin Deniaud 41e2c8eee3 add isort configuration (#52457) 2021-03-30 14:00:26 +02:00
Valentin Deniaud 3dc618a571 add black configuration (#52457) 2021-03-30 11:54:28 +02:00
Benjamin Dauvergne 8a01e56dc4 tox.ini: test with django 2.2 on regular runs 2021-02-18 10:52:04 +01:00
Benjamin Dauvergne be38c3ab23 tox.ini: only show warnings from authentic2 2020-12-03 09:52:36 +01:00
Benjamin Dauvergne 9a1631b18a misc: add journal application (#47155) 2020-10-15 15:22:31 +02:00
Frédéric Péters ed6be9daed tox: limit mock version for compatibility with python 3.5 2020-10-06 09:29:48 +02:00
Benjamin Dauvergne 9d9e34ee6a ci: add a --slow options to also run slow tests (#46988) 2020-10-01 11:50:38 +02:00
Benjamin Dauvergne 9cb195bd11 ci: run with latest pytest and pytest-django versions 2020-09-28 15:04:45 +02:00
Benjamin Dauvergne 6d0aa4dbbc ci: choose launched tests depending on context (#47048)
* locally : only authentic on the production environment
* on jenkins : django-rbac and authentic on the production environment
* on jenkins at night : everything we can, notably future environment
  (django 2.2)
2020-09-25 18:34:47 +02:00
Benjamin Dauvergne 3b5ec1d076 tox.ini: fix coverage source target (bis) 2020-09-25 18:34:34 +02:00
Benjamin Dauvergne 24580e5096 tox.ini: fix coverage source target 2020-09-25 17:23:42 +02:00
Benjamin Dauvergne 19d892f537 urls: remove legacy URL routing (#46151) 2020-09-17 11:32:01 +02:00
Valentin Deniaud 0d2ea81ab4 tox: tell setuptools to use distutils from stdlib (#46252) 2020-09-01 14:20:00 +02:00
Benjamin Dauvergne 4ff53e5220 tox.ini: stop testing with py2 2020-07-10 11:55:09 +02:00
Benjamin Dauvergne 47ee640f79 tests: ensure testserver is used as host name in all tests (#44055)
testserver is the default name in the Django test client and in
django-webtest.

Constraint on django-webtest in tox.ini is relaxed to make
app.set_cookie() works for test on cookies.
2020-06-26 12:02:36 +02:00
Frédéric Péters 6bf952cc42 tox: limit django-filter to <2.3 (#43723)
pkg_resources.ContextualVersionConflict: (Django 1.11.29 (...),
Requirement.parse('Django>=2.2'), {'django-filter'})
-- https://jenkins.entrouvert.org/job/authentic/1290/console
2020-06-06 06:25:52 +02:00
Benjamin Dauvergne af57083fc8 tox.ini: add modifier to disable --sw 2020-05-18 18:33:00 +02:00
Benjamin Dauvergne ce42f45e74 tests: prevent loading of a2 settings by rbac tests (#42694) 2020-05-11 23:53:40 +02:00
Benjamin Dauvergne 3402689158 tests: add test on Attribute admin view (#42694) 2020-05-11 21:24:20 +02:00
Benjamin Dauvergne 0dd9c2d76f tox.ini: ignore warning between Django 1.11 and Python 3.8 (#42504) 2020-05-05 17:08:43 +02:00
Benjamin Dauvergne 986a0b3ba8 tox.ini: add a check-migrations.sh script to check migrations on each run (#42504) 2020-05-05 17:08:43 +02:00
Benjamin Dauvergne a5d3198f26 tox.ini: use python from environment in manage env 2020-05-05 11:53:58 +02:00
Benjamin Dauvergne 5de83bff7d misc: make OIDCUser.is_authenticated callable (#42172)
It's still necessary for DRF 3.4.0.
2020-04-28 02:03:35 +02:00
Paul Marillonnet df3e0e79de tox: add django 2.2 / DRF 3.4 / DRF 3.9 test venv (#41238) 2020-04-27 16:12:58 +02:00
Paul Marillonnet c68258513e setup: more recent django-filter version (#41238) 2020-04-27 14:34:56 +02:00
Benjamin Dauvergne 2af833f06a tox.ini: add coverage for py3 2020-04-24 15:20:31 +02:00
Benjamin Dauvergne ca62cf2ae6 tox.ini: use develop 2020-04-21 14:31:55 +02:00
Benjamin Dauvergne 97830615dd tox.ini: add "manage" environment 2020-04-16 14:40:53 +02:00
Paul Marillonnet 989a7cb832 tox: restrict django-appconf version for py2 venvs (#41200) 2020-03-31 18:14:11 +02:00
Paul Marillonnet 2290f8a228 python3: add a py3 pytest environment in tox.ini (#28276) 2020-03-03 22:34:17 +01:00
Frédéric Péters 9a58847d08 tox: limit enum34 to 1.1.6, for python 2 compatibility 2020-02-22 10:14:27 +01:00
Benjamin Dauvergne 211262eb78 tox.ini: use pytest's junit legacy format 2019-12-06 15:45:39 +01:00
Paul Marillonnet 2cc2cf4200 tests: drop partial sqlite support 2019-11-21 17:02:06 +01:00
Paul Marillonnet cef04caf83 Revert "add compatibility layer for support of Django native JSONField (fixes #29193)"
This reverts commit d730dba525.
2019-11-21 17:02:06 +01:00
Paul Marillonnet c5625c57a7 end django 1.8 support (#36429) 2019-10-02 12:02:05 +02:00
Benjamin Dauvergne 00fb033927 tox.ini: remove sqlite from default environments (#34296) 2019-07-01 09:52:27 +02:00
Benjamin Dauvergne 8cdd0cec16 tox.ini: require django-model-utils<3.2 for django 1.8 2019-06-25 12:35:27 +02:00
Benjamin Dauvergne 7a0d5719d8 tox.ini: run pylint (#32961) 2019-05-10 17:50:53 +02:00
Benjamin Dauvergne 20e0f61b6b tox: generate only one coverage and junit file (#32961) 2019-05-10 10:38:15 +02:00
Benjamin Dauvergne 9d945a6ecd tox.ini: use --random-group instead of --random with pytest 2019-04-12 14:49:18 +02:00
Paul Marillonnet 7e49ebc6e2 python3: restrict pytest version for tox (#31160) 2019-04-01 17:59:33 +02:00
Benjamin Dauvergne 43b3f5ddb1 Jenkinsfile: use pg_virtualenv to isolate test database (#31437) 2019-03-19 18:08:43 +01:00
Benjamin Dauvergne d361088985 Jenkinsfile: use a TMPDIR for tox (#31437) 2019-03-19 18:08:43 +01:00
Frédéric Péters 12c4abbc7b tox: limit django-jsonfield version to keep django 1.8 compatibility (#31482) 2019-03-17 13:44:35 +01:00
Benjamin Dauvergne de82c30847 tox.ini: add testing with python-ldap<3 (#30577)
Because there was big API change after version 3 and Debian stable is
still stuck with version 2.4.28.
2019-03-01 16:06:20 +01:00
Benjamin Dauvergne 1b9f11a3a7 tox.ini: set default environment to python2.7 (#30577)
In order to run in a python3 tox.
2019-03-01 16:06:20 +01:00
Benjamin Dauvergne 8ee1c232dc tox.ini: limit to pytest-django<3.4.6
See #30307 and https://github.com/pytest-dev/pytest-django/issues/698
2019-02-01 15:53:54 +01:00
Benjamin Dauvergne d730dba525 add compatibility layer for support of Django native JSONField (fixes #29193) 2019-01-18 19:30:41 +01:00
Frédéric Péters c5a273d026 Revert "tox: limit pytest version to a version compatible with pytest-cov"
A new version of pytest-cov got released.
2019-01-08 15:47:17 +01:00