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:
		@@ -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