upload app

This commit is contained in:
2023-11-27 20:46:54 +01:00
parent 388a305f8e
commit e69e1e3cc9
23 changed files with 482 additions and 0 deletions

13
tests/test_views.py Normal file
View File

@@ -0,0 +1,13 @@
from cleanup_html.views.default import my_view
from cleanup_html.views.notfound import notfound_view
def test_my_view(app_request):
info = my_view(app_request)
assert app_request.response.status_int == 200
assert info['project'] == 'cleanup_html'
def test_notfound_view(app_request):
info = notfound_view(app_request)
assert app_request.response.status_int == 404
assert info == {}