1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-11-18 03:09:15 +00:00
Commit graph

5 commits

Author SHA1 Message Date
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
Kfir Hadas 95a6c6c799 Amend method name to reflect actual reg URL test
Cherry-picked 3bb9517f2a61a00fd1443d94ffd11f1f34d33ee6
2017-06-08 04:05:00 +03:00
Kfir Hadas 2246f019ea Use spaces 2017-06-07 19:32:45 +03:00
Nathan Yam 64098dae49 Rename test method better 2017-06-07 18:05:32 +03:00
Nathan Yam 232af1dc38 Add basic URL routing tests 2017-06-07 18:05:32 +03:00