pgjones
35627192e7
Support loading configuration from text files
...
TOML is a very popular format now, and is taking hold in the Python
ecosystem via pyproject.toml (among others). This allows toml config
files via,
app.config.from_file("config.toml", toml.loads)
it also allows for any other file format whereby there is a loader
that takes a string and returns a mapping.
2019-10-18 09:15:47 -07:00
David Lord
ff0c92a1c7
Merge branch '1.0.x'
2019-06-23 16:57:52 -07:00
David Lord
e066e9f9e3
standardize license and copyright
2019-06-22 13:09:09 -07:00
David Lord
2cf5d51523
fix string concats left over by black
2019-06-01 09:22:20 -07:00
David Lord
e66fe2e8e7
apply reorder-python-imports pre-commit config
2019-06-01 09:07:20 -07:00
Jon S. Stumpf
4dc9c68d19
address flake8 issues
2019-06-01 06:31:35 -07:00
David Baumgold
85ce588b3b
Reformat with black
...
https://github.com/python/black
2019-05-06 16:28:58 -04:00
David Lord
aa4db37a7f
revert copyright year to project start
...
add copyright header to files
2018-02-08 12:43:30 -08:00
David Lord
d590d6024d
clean up secret key docs
...
consistent key across docs and examples
consistent key across tests, set in conftest
2017-06-28 07:58:06 -07:00
Markus Unterwaditzer
5512e424b6
Fix config.from_pyfile on Python 3 ( #2123 )
...
* Fix config.from_pyfile on Python 3
Fix #2118
* Support Python 2.6
* Fix tests on Python 2
2016-12-26 03:50:47 +01:00
Reuven
98581ec6d6
Use pytest.raises() instead of try/catch with asser 0
...
This is somehow more readable, and enable using the features of pytest's ExeptionInfo (such as errisinstance).
2016-03-04 13:30:40 +02:00
Timo Furrer
906e72b219
support timedelta for SEND_FILE_MAX_AGE_DEFAULT config variable
2015-10-24 07:04:23 +02:00
Parkayun
e05771ff60
Happy New Year 2015
2015-01-02 11:35:00 +09:00
defuz
a6d41d9f2f
add tests for trim_namespace argument of app.config.get_namespace
2014-10-24 13:11:10 +04:00
Markus Unterwaditzer
5e56cb0ace
Split instance tests off into own file
2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
19f6a8af4c
Rename fixture apps_tmpdir
2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
1d0b83690e
Remove flask superclass
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
304913a878
Remove useless classes
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
879becff31
Rewrite assertion methods
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
a21721a2ba
Move fixtures
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
5628b5be48
Rework test_config
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
c797ade864
Some fixes
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
1c40e7ad49
Tests pass now.
2014-09-11 22:09:50 +02:00
Markus Unterwaditzer
2ea00e48ad
Made tests recognizable
2014-09-11 22:09:50 +02:00