Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added a test for #41

  • Loading branch information...
commit 0d457d169d45d58b96c49db151ad42eb6a38e2ad 1 parent 83e958e
@ekini ekini authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 tests/login.py
View
11 tests/login.py
@@ -323,6 +323,17 @@ def loaded_from_cookie_signal(app):
@login.test
+def change_api_key(app):
+ setup_interactive(app)
+ with app.test_client() as c:
+ c.get("/login", query_string={"id": 1, "remember": "yes"})
+ c.cookie_jar.clear_session_cookies()
+ app.config["SECRET_KEY"] = "dffdf"
+ with assert_fired(user_loaded_from_cookie):
+ c.get("/protected")
+
+
+@login.test
def static_interactive(app):
setup_interactive(app)
with app.test_client() as c:
Please sign in to comment.
Something went wrong with that request. Please try again.