total_seconds -> seconds for 2.6 and earlier
This commit is contained in:
parent
396c4bdcc0
commit
f01b654ac4
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ class ConfigTestCase(FlaskTestCase):
|
|||
def test_session_lifetime(self):
|
||||
app = flask.Flask(__name__)
|
||||
app.config['PERMANENT_SESSION_LIFETIME'] = 42
|
||||
self.assert_equal(app.permanent_session_lifetime.total_seconds(), 42)
|
||||
self.assert_equal(app.permanent_session_lifetime.seconds, 42)
|
||||
|
||||
|
||||
class InstanceTestCase(FlaskTestCase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue