Commit graph

218 commits

Author SHA1 Message Date
Jannis Leidel
f7629aa84c Fix test error on Python 3.x. 2015-02-13 21:54:21 +01:00
Jannis Leidel
6ce3740365 Cover the case in which BaseCommand.create_parser retursn optparse.OptionParser. 2015-02-13 21:52:47 +01:00
Jannis Leidel
f35e7e57e0 Add global --configuration option in Django >= 1.8. 2015-02-13 21:47:08 +01:00
Jannis Leidel
9be0c4f700 Fix compatibility between Django versions with regard to the type of some iterable settings such as TEMPLATE_CONTEXT_PROCESSORS. 2015-02-13 21:46:25 +01:00
Jannis Leidel
61d162d376 Fix tox config. 2015-02-13 21:45:37 +01:00
Jannis Leidel
8be47c0813 Merge remote-tracking branch 'benjaminabel/master' 2015-02-13 18:12:56 +01:00
Jannis Leidel
ea28a6ebd6 Minor fixes for 1.8. 2015-02-13 18:12:02 +01:00
Jannis Leidel
c6b3d05f71 Revert "Use py.test."
This reverts commit 7799241900.
2015-02-13 16:43:55 +01:00
Jannis Leidel
21d1712143 Use importlib.import_module if needed. 2015-02-13 16:24:02 +01:00
Jannis Leidel
e0e12b1b9f Fixed minor flake8 error. 2015-02-13 16:21:17 +01:00
Jannis Leidel
2e57cde3ea pytest-django works with Django 1.8 now 2015-02-10 18:29:01 +01:00
Benjamin ABEL
36a7061a61 Add a test for configuration argument
This test do not use mock, and only searches the `configuration` option in
the help messages.
2015-01-27 22:49:58 +01:00
Benjamin ABEL
ae767eaf2d Cleaned importer to be more DRY 2015-01-27 22:36:59 +01:00
Benjamin ABEL
d9b2815526 Use CommandParser instead of LaxOptionParser in django1.8
Added a django version check, and removed the `LaxOptionParser` import for django>=1.8 and used `CommandParser` instead as in Claude Paroz django [commit](8568638603 (diff-860fce37924469764af399caaa365e00R275))

Reference: [#19973 (Management commands migration to argparse) –
Django](https://code.djangoproject.com/ticket/19973)
2015-01-25 18:13:47 +01:00
Benjamin ABEL
a8bf15b358 Use django 1.8 branch in tox.ini 2015-01-25 18:12:41 +01:00
Jannis Leidel
f53e999041 Merge branch 'master' of github.com:jezdez/django-configurations 2015-01-15 13:06:15 +01:00
Jannis Leidel
ffbf79c95d Removed gittip. 2015-01-15 13:06:02 +01:00
Jannis Leidel
186f50c2a4 Merge pull request #88 from benjaminabel/master
Remove coverage env from `tox.ini`
2015-01-07 15:39:40 +01:00
Benjamin ABEL
e20c9b5939 Remove coverage env from tox.ini 2015-01-07 15:28:12 +01:00
Jannis Leidel
fe96f5b46a Install pytest-django master to work around issue with Django 1.8. 2015-01-07 00:11:15 +01:00
Jannis Leidel
14dd728ad4 Improved docs. 2015-01-07 00:06:38 +01:00
Jannis Leidel
8a34b53500 Fixed version in docs.
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2015-01-07 00:05:47 +01:00
Jannis Leidel
f2a46fb009 Merge remote-tracking branch 'nagyv/patch-1'
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2015-01-07 00:05:27 +01:00
Jannis Leidel
f1f9973547 Remove coverage env from travis config.
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2015-01-06 23:28:33 +01:00
Jannis Leidel
7799241900 Use py.test.
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2015-01-06 23:27:00 +01:00
Jannis Leidel
aba18a4cd8 Fix 1.8 test runner. 2015-01-06 23:15:57 +01:00
Jannis Leidel
44476bdd1d Merge remote-tracking branch 'hiisi13/master'
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2015-01-06 23:15:08 +01:00
Jannis Leidel
01e3f5837f Merge remote-tracking branch 'joke2k/dot-env'
Signed-off-by: Jannis Leidel <jannis@leidel.info>

Conflicts:
	.gitignore
2015-01-06 22:34:29 +01:00
Jannis Leidel
ebc0c51dd8 Merge branch 'master' of github.com:jezdez/django-configurations 2015-01-06 21:38:20 +01:00
Jannis Leidel
98de57b27e Added configurations.management.call_command. Fix #72. 2015-01-06 21:38:08 +01:00
Jannis Leidel
cb9f7c36fb Merge pull request #83 from mauricioabreu/master
Fixed wrong behaviour when assigning BooleanValue
2015-01-06 21:23:37 +01:00
Jannis Leidel
a8643a1af5 Simplify coverage setup. 2015-01-06 21:20:52 +01:00
Jannis Leidel
9dd8ba2a6e Ignore dists. 2015-01-06 21:16:41 +01:00
Jannis Leidel
41dfcee46c Backported LaxOptionParser from Django 1.7 to make it work on 1.8. 2015-01-06 21:16:14 +01:00
Mauricio de Abreu Antunes
3f892f9814 Fixed wrong behaviour when assigning BooleanValue
When assigning False to a BooleanValue and reusing it was raising a
ValueError exception because BooleanValue was evaluating False as None.

Thanks to @abbottc for catching this error.
2014-12-27 10:34:40 -02:00
Jannis Leidel
5d1a8d7887 Merge branch 'master' of github.com:jezdez/django-configurations 2014-12-12 17:26:43 +01:00
Jannis Leidel
45c9127d4e More fixes to the test setup. 2014-12-12 17:26:21 +01:00
Jannis Leidel
fb9275744e Merge pull request #78 from slafs/validationmixinfix
fix ValidationMixin instantiation with no default
2014-12-12 16:28:58 +01:00
Jannis Leidel
ecb3db3762 Merge pull request #76 from rassie/patch-1
Correct documentation about mixin usage
2014-12-12 16:28:15 +01:00
Jannis Leidel
08eabf2ae0 Merge remote-tracking branch 'heww/master' 2014-12-12 16:27:46 +01:00
Jannis Leidel
82f2514b81 Merge remote-tracking branch 'slafs/newtox' 2014-12-12 16:26:18 +01:00
Jannis Leidel
6ddd647361 Merge pull request #73 from jpadilla/master
Test 1.7 against stable version instead of master
2014-12-12 16:22:33 +01:00
Sławek Ehlert
8d366fca44 fix ValidationMixin instantiation with no default
with tests. fixes #69
2014-10-30 23:44:48 +01:00
Sławek Ehlert
55a2cf6a36 use tox generative envlist with factor dependencies 2014-10-30 23:18:26 +01:00
Nikolai Prokoschenko
d97afc163a Correct documentation about mixin usage
`Configuration` class needs to be last in the inheritance list, otherwise it's not possible to override Django's default settings. Tests are already correct, just the documentation is wrong.
2014-10-20 11:06:05 +02:00
He Weiwei
f8ebb564da fix bug of setup_value func for EmailURLValue 2014-10-08 12:19:35 +08:00
José Padilla
f0d956740c Test 1.7 against stable version instead of master 2014-09-09 12:06:18 -04:00
Viktor Nagy
738b79bc70 more generic path given 2014-08-12 23:10:05 +02:00
Jannis Leidel
7af6d9e7c5 Merge pull request #62 from sassman/issues/#61
solution proposal for Issue #61
2014-08-12 20:41:18 +02:00
Viktor Nagy
1998ba8d8c Added recipe to work with Sphinx 2014-05-22 09:36:11 +02:00