canaille-globuzma/tests/test_bad_flows.py

20 lines
466 B
Python
Raw Normal View History

2020-10-26 18:15:53 +00:00
def test_incomplete_requests(testclient, slapd_connection, logged_user, client):
testclient.get(
2021-10-29 12:20:06 +00:00
"/oauth/authorize",
params=dict(
response_type="code",
),
status=400,
2020-10-26 18:15:53 +00:00
)
def test_bad_client(testclient, slapd_connection, logged_user, client):
testclient.get(
"/oauth/authorize",
2021-10-29 12:20:06 +00:00
params=dict(
response_type="code",
clienrt_id="nope",
),
2020-10-26 18:15:53 +00:00
status=400,
)