Skip to content

Commit

Permalink
test on current_provider in session
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoLechemia committed Jul 16, 2024
1 parent f9c220e commit 18c70fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pypnusershub/tests/test_utilisateurs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datetime import datetime
from flask import url_for
from flask import url_for, session

import pytest

Expand Down Expand Up @@ -125,6 +125,7 @@ def test_login(self, group_and_users):
assert "user" in resp.json
assert "expires" in resp.json
assert "token" in resp.json
assert session["current_provider"] == "local_provider"

expires = resp.json["expires"]
datetime_expires = datetime.fromisoformat(expires)
Expand Down

0 comments on commit 18c70fa

Please sign in to comment.