Skip to content

Commit

Permalink
Merge pull request #105 from level12/101-flask-login-update
Browse files Browse the repository at this point in the history
Flask Login update breaks tests
  • Loading branch information
guruofgentoo committed Apr 2, 2020
2 parents 8888386 + d26e5a0 commit ba59925
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion keg_auth/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def test_logout(self):
user = self.user_ent.testing_create(permissions=self.protected_url_permissions)
client = flask_webtest.TestApp(flask.current_app)
with client.session_transaction() as sess:
sess['user_id'] = user.session_key
sess['_user_id'] = user.session_key

# Make sure our client is actually logged in
client.get(self.protected_url, status=200)
Expand Down
2 changes: 1 addition & 1 deletion keg_auth/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_home(self):

user = ents.User.testing_create()
with client.session_transaction() as sess:
sess['user_id'] = user.session_key
sess['_user_id'] = user.session_key

resp = client.get('/')
assert '/login' not in resp
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
'bcrypt',
'commonmark',

'Flask-Login==0.4.1',
'Flask-Login>0.4.1',
'Keg>=0.8.1',
'KegElements>=0.5.24',
'inflect',
Expand Down

0 comments on commit ba59925

Please sign in to comment.