Skip to content

Commit

Permalink
✅ Fix failing test
Browse files Browse the repository at this point in the history
The exception message is now only printed at high verbosity
  • Loading branch information
unode committed Jul 28, 2023
1 parent dbf590b commit 90e7f06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/handle_corrupted_passwords.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ from simpletap.fdecrypt import lib
class TestCorruptedPassword(unittest.TestCase):
def validate_one(self, userkey, grepkey, output):
expected = lib.get_user_data(userkey)
# Ignore DEBUG/verbose information when looking for the specified key
output = lib.grep("^(?!.*DEBUG).*$", output, context=0)
matches = lib.grep(grepkey, output, context=1)

self.assertEqual(matches, expected)
Expand Down Expand Up @@ -47,7 +49,7 @@ class TestCorruptedPassword(unittest.TestCase):
"test_profile_firefox_nopassword_114")

# Must run in non-interactive mode or password prompt will be shown
cmd = lib.get_script() + [self.test, "-n", "--non-fatal-decryption"]
cmd = lib.get_script() + [self.test, "-n", "--non-fatal-decryption", "-vv"]

self.run_firefox_nopassword(cmd)

Expand Down

0 comments on commit 90e7f06

Please sign in to comment.