Compare commits

..

No commits in common. "d78093ab535c6a903a5731b85753fe34262ca86f" and "a1c48beb3248693b17af7b1e02289abcb819155a" have entirely different histories.

5 changed files with 8 additions and 8 deletions

View File

@ -379,9 +379,9 @@ A pytest Test
def test_admin(app: Flask, client: Client): def test_admin(app: Flask, client: Client):
with app.app_context(): with app.app_context():
response = client.get("/admin") response = self.client.get("/admin")
assert response.status_code == 401 assert response.status_code == 401
response = client.get( response = self.client.get(
"/admin", digest_auth=("my_name", "my_pass")) "/admin", digest_auth=("my_name", "my_pass"))
assert response.status_code == 200 assert response.status_code == 200

View File

@ -22,7 +22,7 @@ copyright = '2022, imacat'
author = 'imacat' author = 'imacat'
# The full version, including alpha/beta/rc tags # The full version, including alpha/beta/rc tags
release = '0.2.4' release = '0.2.3'
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------

View File

@ -261,8 +261,8 @@ A pytest Test
def test_admin(app: Flask, client: Client): def test_admin(app: Flask, client: Client):
with app.app_context(): with app.app_context():
response = client.get("/admin") response = self.client.get("/admin")
assert response.status_code == 401 assert response.status_code == 401
response = client.get( response = self.client.get(
"/admin", digest_auth=("my_name", "my_pass")) "/admin", digest_auth=("my_name", "my_pass"))
assert response.status_code == 200 assert response.status_code == 200

View File

@ -17,7 +17,7 @@
[metadata] [metadata]
name = flask-digest-auth name = flask-digest-auth
version = 0.2.4 version = 0.2.3
author = imacat author = imacat
author_email = imacat@mail.imacat.idv.tw author_email = imacat@mail.imacat.idv.tw
description = The Flask HTTP Digest Authentication project. description = The Flask HTTP Digest Authentication project.

View File

@ -71,9 +71,9 @@ class Client(WerkzeugClient):
def test_admin(app: Flask, client: Client): def test_admin(app: Flask, client: Client):
with app.app_context(): with app.app_context():
response = client.get("/admin") response = self.client.get("/admin")
assert response.status_code == 401 assert response.status_code == 401
response = client.get( response = self.client.get(
"/admin", digest_auth=("my_name", "my_pass")) "/admin", digest_auth=("my_name", "my_pass"))
assert response.status_code == 200 assert response.status_code == 200
""" """