From fd302d5eab40f1c683aee119f72b48a999c22116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 25 Nov 2024 10:33:24 +0100 Subject: [PATCH] Fix duplicate method in tests --- tests/test_altcha.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_altcha.py b/tests/test_altcha.py index d268088..93c58e5 100644 --- a/tests/test_altcha.py +++ b/tests/test_altcha.py @@ -237,7 +237,7 @@ def test_solve_challenge(self): ) challenge = create_challenge(options) - solution, err = solve_challenge( + solution = solve_challenge( challenge.challenge, challenge.salt, challenge.algorithm, @@ -245,7 +245,6 @@ def test_solve_challenge(self): start, ) - self.assertIsNone(err, "Error occurred while solving the challenge") self.assertIsNotNone(solution, "Solution should not be None") self.assertEqual( challenge.challenge, @@ -254,7 +253,7 @@ def test_solve_challenge(self): ), ) - def test_solve_challenge(self): + def test_solve_challenge_solution(self): # Create a challenge options = ChallengeOptions( algorithm="SHA-256", number=100, hmac_key=self.hmac_key