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
Frédéric Péters
277afc5a2d
tox: limit pytest version to a version compatible with pytest-cov
2019-01-07 05:53:53 +01:00
Benjamin Dauvergne
5a4dbd9df7
tox.ini: limit pylint and pylint-django versions ( #29170 )
2018-12-18 17:15:51 +01:00
Benjamin Dauvergne
fa960a5901
tox.ini: filter warnings
2018-12-07 15:03:48 +01:00
Benjamin Dauvergne
32418d2e87
tox.ini: use psycopg2-binary instead of psycopg2
2018-12-06 16:38:17 +01:00
Benjamin Dauvergne
acb2822992
ldap: fix setting client TLS certificate ( fixes #28570 )
...
New tests depends upon ldaptools 0.15.
2018-12-04 15:35:04 +01:00
Frédéric Péters
7d2c18eb54
tox: limit Markdown version
2018-09-23 09:01:38 +02:00
Emmanuel Cazenave
db9b9028b1
django 1.11: ensure compatibility with recent django-tables2 ( #21489 )
...
django-tables2 1.1 is not compatbible with django 1.11
In recent version of django-tables2 'row' is not available in
the context of TemplateColumn, so we use direclty 'record'
(instead of 'row.record').
2018-08-12 20:11:31 +02:00
Emmanuel Cazenave
c6e2632fbc
django 1.11: adapt tox.ini and setup.py ( #21489 )
2018-08-12 20:11:31 +02:00
Benjamin Dauvergne
99a7b14bf0
add a remember me button ( fixes #25579 )
...
It simply use session.set_expiry() to augment the session duration.
2018-08-03 18:52:22 +02:00
Emmanuel Cazenave
38e2d61e07
use a python2 compatible pylint-django ( #25568 )
2018-08-02 17:55:50 +02:00
Benjamin Dauvergne
0f36a964ac
tox.ini: add a reusedb target
2018-07-03 18:10:40 +02:00
Emmanuel Cazenave
7bc89df159
create jenkins pipeline job ( #24805 )
2018-07-02 11:56:19 +02:00
Emmanuel Cazenave
74c29b60a9
pin django-webtest ( #23611 )
2018-05-04 16:01:39 +02:00
Benjamin Dauvergne
918c50b91a
tox: do not restrain psycopg2 version
2018-05-02 19:44:28 +02:00
Benjamin Dauvergne
bcf5b9a001
tox.ini: use pytest-random
2018-03-23 15:45:47 +01:00
Benjamin Dauvergne
f2e4208f28
Revert "tox: limit to pytest < 3.4 for now ( #21610 )"
...
This reverts commit 7c2b5f3fcb
.
2018-02-07 19:01:19 +01:00
Frédéric Péters
7c2b5f3fcb
tox: limit to pytest < 3.4 for now ( #21610 )
2018-02-02 13:28:04 +01:00
Benjamin Dauvergne
8d6c197d6a
tox.ini: force pytest>=3.3.0 remove pytest-catchlog ( fixes #20326 )
2017-11-28 16:46:27 +01:00
Benjamin Dauvergne
937456200b
tox.ini: force use of pip > 9
...
It's needed for python-cryptography.
2017-10-13 12:47:18 +02:00
Benjamin Dauvergne
16dab48b9f
registration: keep email in session after validation or pre-registration ( fixes #18903 )
2017-09-22 16:39:40 +02:00
Benjamin Dauvergne
da679300ab
tox.ini: replace python-capturelog by python-catchlog
...
python-catpurelog is not maintained, python-catchlog is a maintained fork.
2017-03-23 00:37:57 +01:00
Benjamin Dauvergne
90596aa651
unsupport django 1.7
2017-03-15 22:51:55 +01:00
Frédéric Péters
e609e313ff
tox: limit psycopg to <2.7, for postgresql 9.1 compatibility ( #15243 )
2017-03-06 10:07:17 +01:00
Benjamin Dauvergne
5009b6eb8a
add OpenID Connect IdP plugin ( fixes #6982 )
...
You must set a valid RSA JWK in a JWKSet in the setting key A2_IDP_OIDC_JWKSET
or only use HMAC signature for your clients.
2016-11-06 16:19:12 +01:00
Benjamin Dauvergne
862aa00350
tests: add context manager to check content of logs ( #13714 )
2016-11-03 10:33:08 +01:00
Benjamin Dauvergne
d70c7ecb2a
remove all remaining uses of urllib2.urlopen ( fixes #11388 )
...
We replace it by requests API to improve SSL support (especially SNI).
2016-06-16 11:52:18 +02:00
Benjamin Dauvergne
c6cb35757a
tox.ini: add a fast option
2016-04-26 00:42:58 +02:00
Benjamin Dauvergne
b29402ff9f
tox.ini: choose a better default for toxworkdir
2016-03-30 16:21:07 +02:00
Frédéric Péters
8ad53c0171
jenkins.sh: upgrade pylint and install pylint_django ( #10462 )
2016-03-28 19:50:44 +02:00
Benjamin Dauvergne
74e7446e94
override pre-Django 1.8 PasswordResetTokenGenerator ( #7150 )
...
It supposes that user.last_login is always a datetime, which is not true anymore.
2016-03-07 15:13:33 +01:00
Benjamin Dauvergne
9f8e5ca061
tox.ini: add checker target
2016-03-02 02:25:52 +01:00
Benjamin Dauvergne
5262c3c365
simplify tox.ini, move remaining tests to root test directories ( fixes #1156 )
2016-03-02 01:15:51 +01:00
Benjamin Dauvergne
74405be078
tox.ini: use posargs to change parameters to py.test
2016-02-23 02:09:43 +01:00
Benjamin Dauvergne
cb56b4387f
tox.init: run tests with migrations on postgres and sqlite *files* ( fixes #9951 )
2016-02-12 11:10:10 +01:00
Benjamin Dauvergne
f15e6061f5
update user only when they change in sync-ldap-users ( fixes #9645 )
2016-02-11 00:39:02 +01:00
Benjamin Dauvergne
867791eea5
tox.ini: pass positional args to py.test
2016-02-10 21:15:29 +01:00
Benjamin Dauvergne
f1e5d37deb
tests: force locale to english
2016-01-12 12:52:28 +01:00
Benjamin Dauvergne
ff92996c3b
rbac: handle slug construction in manager forms ( fixes #9260 )
...
Handling validation or initialization in Model.save() or clean() does not allow
to modulate visible fields on forms, so we prefer to do that in forms.
2015-12-14 14:45:59 +01:00
Benjamin Dauvergne
34354efb45
api: new user API ( #7862 )
...
You can list/add/change users. Security is enforced by basic authentication,
session authentication and role permissions:
- custom_user.view_user for listing,
- custom_user.add_user for creating,
- custom_user.change_user for updating,
- custom_user.delete_user for deleting.
2015-11-16 11:47:31 +01:00
Benjamin Dauvergne
57b7d26c92
tox.ini: removed dead environments from envlist
2015-09-25 22:42:44 +02:00
Benjamin Dauvergne
1fc57c8541
tox.ini: declare /bin/mv in whitelist of commands
2015-09-25 10:41:41 +02:00
Benjamin Dauvergne
8f81aa8903
jenkins: add scripts to merge coverage and junit reports produced by pytest
2015-09-22 22:56:07 +02:00
Benjamin Dauvergne
22566d8836
tox.ini: use pytest to run tests
...
It greatly improves performance as pytest supports the old "nomigration"
behaviour removed in Django 1.7.
2015-09-22 22:40:36 +02:00
Benjamin Dauvergne
a166dc3d8f
make tox run tests of new application authentic2_provisionning_ldap ( #6596 )
2015-07-15 12:39:09 +02:00
Benjamin Dauvergne
ba3c06f1d0
Adapt tox commands to work with python 2.7.10
...
It seems unittest from Debian testing does not walk package as Python
under wheezy. It fixes it.
2015-06-18 16:20:48 +02:00