tests: ensure no old sessions in test_session_expire (#86739)
gitea/wcs/pipeline/head Build queued... Details

This commit is contained in:
Valentin Deniaud 2024-02-08 17:13:05 +01:00 committed by Frédéric Péters
parent 9101bd1e69
commit f3d2056be5
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ session_max_age: 1
def test_session_expire(pub, user, app):
pub.session_manager.session_class.wipe()
login(app, username='foo', password='foo')
assert 'Logout' in app.get('/')
session = pub.session_manager.session_class.select()[0]