Skip to content

Commit

Permalink
Merge pull request #1329 from jerryfletcher21/fix-tests
Browse files Browse the repository at this point in the history
fix some errors while running test
  • Loading branch information
KoalaSat authored Feb 22, 2025
2 parents 70eed71 + 5e26e3a commit 4941af0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test_trade_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ def test_withdraw_reward_after_unilateral_cancel(self):

# Fetch amount of rewards for taker
path = reverse("robot")
taker_headers = trade.get_robot_auth(trade.maker_index)
taker_headers = trade.get_robot_auth(trade.taker_index)
response = self.client.get(path, **taker_headers)

self.assertEqual(response.status_code, 200)
Expand Down
6 changes: 3 additions & 3 deletions tests/utils/pgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ def sign_message(message, private_key_path, passphrase_path):
with open(passphrase_path, "r") as f:
passphrase = f.read()

gpg.import_keys(private_key, passphrase=passphrase)
import_result = gpg.import_keys(private_key, passphrase=passphrase)

# keyid=import_result.fingerprints[0]
signed_message = gpg.sign(
message, passphrase=passphrase, extra_args=["--digest-algo", "SHA512"]
message, keyid=import_result.fingerprints[0], passphrase=passphrase,
extra_args=["--digest-algo", "SHA512"]
)

# [print(name, getattr(signed_message, name)) for name in dir(signed_message) if not callable(getattr(signed_message, name))]
Expand Down

0 comments on commit 4941af0

Please sign in to comment.