Skip to content

Commit

Permalink
Fix duplicate method in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Nov 25, 2024
1 parent ff329dd commit fd302d5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_altcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,14 @@ def test_solve_challenge(self):
)
challenge = create_challenge(options)

solution, err = solve_challenge(
solution = solve_challenge(
challenge.challenge,
challenge.salt,
challenge.algorithm,
1000,
start,
)

self.assertIsNone(err, "Error occurred while solving the challenge")
self.assertIsNotNone(solution, "Solution should not be None")
self.assertEqual(
challenge.challenge,
Expand All @@ -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
Expand Down

0 comments on commit fd302d5

Please sign in to comment.