Compare commits
No commits in common. "d78093ab535c6a903a5731b85753fe34262ca86f" and "a1c48beb3248693b17af7b1e02289abcb819155a" have entirely different histories.
d78093ab53
...
a1c48beb32
@ -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
|
||||||
|
|
||||||
|
@ -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 ---------------------------------------------------
|
||||||
|
@ -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
|
||||||
|
@ -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.
|
||||||
|
@ -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
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user