Skip to content

Commit c6a52ad

Browse files
authored
Update test.py
1 parent 041dc4b commit c6a52ad

File tree

1 file changed

+3
-3
lines changed
  • exercises/37-validity-of-password

1 file changed

+3
-3
lines changed

exercises/37-validity-of-password/test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ def test_function_existence(capsys, app):
88

99
@pytest.mark.it('The function should return the expected output')
1010
def 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')
1414
def 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')
1818
def 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"

0 commit comments

Comments
 (0)