Compare commits

..

2 Commits

Author SHA1 Message Date
d78093ab53 Advanced to version 0.2.4. 2022-12-06 22:48:20 +08:00
c6b8569543 Fixed the documentation on the pytest example. 2022-12-06 22:46:52 +08:00
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):
with app.app_context():
response = self.client.get("/admin")
response = client.get("/admin")
assert response.status_code == 401
response = self.client.get(
response = client.get(
"/admin", digest_auth=("my_name", "my_pass"))
assert response.status_code == 200

View File

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

View File

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

View File

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

View File

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