Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
flofriday committed Sep 17, 2024
1 parent 8b61d1c commit 68fb94a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ def verify():
return "Almost, the url we need is at the bottom of the page you submitted", 400

# Inspecting the url
scheme, loc, path, _, query, _ = urlparse(
"https://tiss.tuwien.ac.at/events/rest/calendar/personal?locale=de&token=af64650a-674d-4aaf-bdc3-23d8965f40f5"
)
scheme, loc, path, _, query, _ = urlparse(url)
if not (
scheme == "https"
and loc == "tiss.tuwien.ac.at"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_verify_success(client: FlaskClient, mocker):
mocker.patch("app.tiss.get_calendar", return_value=get_test_calendar())

response = client.get(
"/verify?url=https://tiss.tuwien.ac.at/events/rest/calendar/personal?locale=en&token=justATestingTokenObviouslyNotReal"
"/verify?url=https://tiss.tuwien.ac.at/events/rest/calendar/personal?locale=de%26token=justATestingTokenObviouslyNotReal"
)
assert response.status_code == 200

Expand Down

0 comments on commit 68fb94a

Please sign in to comment.