Skip to content

Commit

Permalink
add routes
Browse files Browse the repository at this point in the history
  • Loading branch information
ElJocho committed Oct 11, 2023
1 parent 9516ea7 commit 5a4b17b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@
from sketch_map_tool.database import client_celery as db_client_celery
from sketch_map_tool.database import client_flask as db_client_flask
from sketch_map_tool.models import Bbox, PaperFormat, Size
from sketch_map_tool.routes import digitize_results_post
from sketch_map_tool.routes import (
about,
digitize,
digitize_results_get,
digitize_results_post,
help,
index,
)
from tests import FIXTURE_DIR


Expand Down Expand Up @@ -64,6 +71,13 @@ def flask_client(flask_app):
flask_app.add_url_rule(
"/digitize/results", view_func=digitize_results_post, methods=["POST"]
)
flask_app.add_url_rule(
"/digitize/results", view_func=digitize_results_get, methods=["GET"]
)
flask_app.add_url_rule("/digitize", view_func=digitize, methods=["GET"])
flask_app.add_url_rule("/", view_func=index, methods=["GET"])
flask_app.add_url_rule("/about", view_func=about, methods=["GET"])
flask_app.add_url_rule("/help", view_func=help, methods=["GET"])
return flask_app.test_client()


Expand Down

0 comments on commit 5a4b17b

Please sign in to comment.