1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 10:40:00 +00:00
nyaa/tests
Kfir Hadas 87dd95f1e0 Refactor into an app factory [2 of 2] (#322)
* Replace all `from nyaa import app` imports with `app = flask.current_app` (or `from flask import current_app as app` where possible)
* Add a separate config object for top-level and class statements as `nyaa.extensions.config`
Required because those codes don't have app context at the time of evaluation/execution.
* Remove `routes.py` file and register all blueprints in `nyaa/__init__.py`
* Refactor `nyaa/__init__.py` into an app factory
* Update tools
* Update tests (temporary, will be replaced)
2017-08-01 21:02:08 +03:00
..
__init__.py Refactor into an app factory [2 of 2] (#322) 2017-08-01 21:02:08 +03:00
test_api_handler.py Fix RFC822 filters + More tests (#257) 2017-07-07 16:14:37 -05:00
test_backend.py Fix RFC822 filters + More tests (#257) 2017-07-07 16:14:37 -05:00
test_bencode.py bencode: fix nontermination on empty or malformed input 2017-07-24 20:53:48 -06:00
test_models.py Fix RFC822 filters + More tests (#257) 2017-07-07 16:14:37 -05:00
test_nyaa.py Refactor into an app factory [2 of 2] (#322) 2017-08-01 21:02:08 +03:00
test_template_utils.py Move the remaining template_global into 'template-utils' blueprint 2017-07-27 14:14:00 +03:00
test_utils.py Fix RFC822 filters + More tests (#257) 2017-07-07 16:14:37 -05:00