David Lord
465922e5f1
clean up secret key docs
...
consistent key across docs and examples
consistent key across tests, set in conftest
7 years ago
Markus Unterwaditzer
789715adb9
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
8 years ago
Reuven
4dc2ef19ea
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).
9 years ago
Timo Furrer
d526932a09
support timedelta for SEND_FILE_MAX_AGE_DEFAULT config variable
9 years ago
Parkayun
33534bb4a9
Happy New Year 2015
10 years ago
defuz
5e8d503098
add tests for trim_namespace argument of app.config.get_namespace
10 years ago
Markus Unterwaditzer
be42d5665e
Split instance tests off into own file
10 years ago
Markus Unterwaditzer
77d887526d
Rename fixture apps_tmpdir
10 years ago
Markus Unterwaditzer
af4cb0ff2b
Remove flask superclass
10 years ago
Markus Unterwaditzer
af41dbe0c4
Remove useless classes
10 years ago
Markus Unterwaditzer
5da2c00419
Rewrite assertion methods
10 years ago
Markus Unterwaditzer
b1c0951ad6
Move fixtures
10 years ago
Markus Unterwaditzer
ba82bac3d8
Rework test_config
10 years ago
Markus Unterwaditzer
df711eac90
Some fixes
10 years ago
Markus Unterwaditzer
8fa5e32d9a
Tests pass now.
10 years ago
Markus Unterwaditzer
961db8ad72
Made tests recognizable
10 years ago
Markus Unterwaditzer
3550b26071
Move tests
10 years ago
Daniel Neuhäuser
aa40b1731e
Add Config.from_mapping
10 years ago
Matt Wright
90a50f8b51
Add `get_namespace` method on `Config` object for convenient access of namespaced config options.
11 years ago
Daniel Neuhäuser
52098e1e4f
Happy New Year 2014
11 years ago
Daniel Neuhäuser
94f4360137
Explain is_package AttributeError in find_package
...
When a PEP 302 import hook is used that doesn't implement .is_package()
an AttributeError is raised. This looks like a bug in Flask. This change
fixes that problem in the sense that it explains, that the
AttributeError is intentional.
11 years ago
Matt Wright
b290bf4079
Add ability to config from a JSON file
11 years ago
Karol Kuczmarski
ec5b182f15
Add Flask.config_class feature
12 years ago
Daniel Neuhäuser
62e7275bdf
Use assert_false where appropriate
12 years ago
Daniel Neuhäuser
9f8a2075c7
Use assert_in where appropriate
12 years ago
Daniel Neuhäuser
239780be28
Use assert_true instead of assert_
...
assert_ is deprecated which causes annoying warnings
12 years ago
Thomas Waldmann
e1d356fb71
ported some more stuff to py 3.3
...
removed init_jinja_globals hack from app.py after consulting mitsuhiko
(didn't work on py 3.3 "as is")
removed with_statement future imports, not needed any more
needs more work on 2.7 as well as on 3.3
12 years ago
Thomas Waldmann
cfbfff2d26
python-modernize automated changes: misc. minor stuff
12 years ago
Thomas Waldmann
6caaa8a527
automated change using python-modernize: use 'as' in except
12 years ago
Dave Shawley
8d7ca29a35
Cleaned up test case for issue #414 .
13 years ago
Dave Shawley
76773e1d0a
Fixed silent keyword arg to config.from_envvar.
...
The ``silent`` keyword argument to Config.from_envvar was not being honored
if the environment variable existed but the file that it mentioned did not.
The fix was simple - pass the keyword argument on to the underlying call to
``from_pyfile``. I also noticed that the return value from ``from_pyfile``
was not being passed back so I fixed that as well.
13 years ago
Ron DuPlain
b786eac557
Add test for limited imp loaders, #380 .
13 years ago
Ron DuPlain
fde6e364a4
Update tests for new module helpers.
13 years ago
Armin Ronacher
f01b654ac4
total_seconds -> seconds for 2.6 and earlier
13 years ago
Armin Ronacher
8da8a21b69
Moved the conversion thing into the ConfigAttribute.
13 years ago
Armin Ronacher
fbd6776e68
Fixed a bug in the testsuite that caused problems when dots where in directory names
13 years ago
Armin Ronacher
fc2caa4b9c
Changed assert to self.assert_ where it was still in place
13 years ago
Armin Ronacher
3069e2d7f7
Fight the generic asserts!
13 years ago
Armin Ronacher
4cb6eea8f1
Split up testsuite and moved it to flask.testsuite. This fixes #246
13 years ago