Revised so that you always call digest_auth.init_app(), to avoid confusion. It remembers the current application. The logout() method no longer need current_app for the current application.
This commit is contained in:
1 parent
65c3322ecc
commit
af8c3a484c
3 files changed
+13
-13
No files matched your search
@@ -49,6 +49,7 @@ class AuthenticationTestCase(TestCase):
|
||||
app.test_client_class = Client
|
||||
|
||||
auth: DigestAuth = DigestAuth(realm=_REALM)
|
||||
auth.init_app(app)
|
||||
user_db: t.Dict[str, str] \
|
||||
= {_USERNAME: make_password_hash(_REALM, _USERNAME, _PASSWORD)}
|
||||
|
||||
|
||||
Reference in new issue
Block a user