File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
exercises/37-validity-of-password Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ def test_function_existence(capsys, app):
88
99@pytest .mark .it ('The function should return the expected output' )
1010def test_expected_output (capsys , app ):
11- assert app .valid_password ("ABd1234@1,a F1#,2w3E*,2We3345 " ) == "ABd1234@1 "
11+ assert app .valid_password ("ABd1234@1" ) == "Valid password "
1212
1313@pytest .mark .it ('Your solution should work as expected for valid passwords' )
1414def test_expected_another_output (capsys , app ):
15- assert app .valid_password ("Lmd4567@2,a F1#,2w3E*,2We3345 " ) == "Lmd4567@2 "
15+ assert app .valid_password ("Lmd4567@2" ) == "Valid password "
1616
1717@pytest .mark .it ('Your solution should work as expected when there is no valid password input' )
1818def test_expected_output_no_valid_entries (capsys , app ):
19- assert app .valid_password ("ABd12,a F1#,2w3E*,2We3345 " ) == ""
19+ assert app .valid_password ("ABd12" ) == "Invalid password. Please try again "
You can’t perform that action at this time.
0 commit comments