11
11
'has_lowercase_chars' ,
12
12
'has_uppercase_chars' ,
13
13
'has_special_chars' ,
14
- 'expected_match'
14
+ 'expected_match' ,
15
15
],
16
16
[
17
17
(20 , True , False , False , False , r'^\d+$' ),
@@ -29,17 +29,20 @@ async def test_e2e_generate_password(
29
29
has_lowercase_chars : bool ,
30
30
has_uppercase_chars : bool ,
31
31
has_special_chars : bool ,
32
- expected_match : str
32
+ expected_match : str ,
33
33
):
34
34
35
35
async with mocked_client as client :
36
- response = await client .post ("/api/v1/passwords/generate/" , json = {
37
- "password_length" : password_length ,
38
- "has_numbers" : has_numbers ,
39
- "has_lowercase_chars" : has_lowercase_chars ,
40
- "has_uppercase_chars" : has_uppercase_chars ,
41
- "has_special_chars" : has_special_chars ,
42
- })
36
+ response = await client .post (
37
+ "/api/v1/passwords/generate/" ,
38
+ json = {
39
+ "password_length" : password_length ,
40
+ "has_numbers" : has_numbers ,
41
+ "has_lowercase_chars" : has_lowercase_chars ,
42
+ "has_uppercase_chars" : has_uppercase_chars ,
43
+ "has_special_chars" : has_special_chars ,
44
+ }
45
+ )
43
46
44
47
assert response .status_code == 200
45
48
body = response .json ()
0 commit comments