Commit graph

24 commits

Author SHA1 Message Date
Christian Abbott
8287ab6f7f Merge remote-tracking branch 'upstream/master' 2015-01-07 03:19:24 -08:00
Christian Abbott
e0a68fdbb6 Rename TupleOfTupleValue to SingleNestedTupleValue; Add SingleNestedListValue and do a DRY refactor of ListValue, TupleValue, and their SingleNested subclasses 2015-01-07 03:08:30 -08: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
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
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
Christian Abbott
c4ba5ca559 Add TupleOfTuplesValue along with associated tests and updated documentation 2014-12-18 07:15:20 -08: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
Sławek Ehlert
8d366fca44 fix ValidationMixin instantiation with no default
with tests. fixes #69
2014-10-30 23:44:48 +01:00
He Weiwei
f8ebb564da fix bug of setup_value func for EmailURLValue 2014-10-08 12:19:35 +08:00
Sven Aßmann
4018f7b42a - add late_binding to value with default False
- this enables a value to load from environment if the env variable name is given at construction time
- cache value of environment value now in property value
- add __new__ to allow a construction of a given type from environment directly. In this case now Value instance is constructed but an instance of the desired type that is covered by the Value implementation. For Value it is str, for DictValue it is dict etc.
- extend tests for this new behavior
- extend test coverage for some other places
2014-05-02 22:51:48 +02:00
joke2k
27eb748d68 refactoring of DotConfiguration 2014-04-17 18:07:33 +02:00
joke2k
5279ae4ace add support to load .env file into os.environ 2014-04-17 16:23:36 +02:00
joke2k
8a8f99ab68 add *.pyc to .gitignore; remove repeated INSTALLED_APPS from test_project.settings; fix check dj-database-url returned None values to empty string 2014-04-17 16:22:31 +02:00
Jannis Leidel
280be2e3e2 Fix database URL test. 2014-04-15 15:36:37 -04:00
Dmitry Kozhedubov
3ae1e368c2 test_cache_url_value fix 2014-03-02 20:41:40 +04:00
Dmitry Kozhedubov
e33eeeb871 Ability to pass keyword args to CastingMixin casters 2014-03-02 13:31:42 +04:00
Jannis Leidel
f087cea84d Added SearchURLValue. 2014-01-16 19:00:29 +01:00
Jannis Leidel
5950740c5d Fixed a 1.7.x test. 2013-11-26 15:46:53 +01:00
Jannis Leidel
7dbe8c063f Ported tests to run via tox and Travis. 2013-11-26 12:25:07 +01:00
Jannis Leidel
ed8d284d66 Merge branch 'master' of github.com:jezdez/django-configurations 2013-10-08 09:32:43 +02:00
Stefan Wehrmeyer
275a5b409a Fix check_options of ConfigurationImporter 2013-10-08 09:32:05 +02:00
Stefan Wehrmeyer
5e8dc290df Fix CacheURLValue default value
Remove unused kwarg 'name' that shadows kwarg
'default'.
2013-10-06 16:33:24 +02:00
Jannis Leidel
5898acb594 Moved tests out of the configurations packages. 2013-09-09 11:02:43 +02:00