Skip to content

Commit

Permalink
add print statements for the expected values
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajames committed Dec 6, 2023
1 parent 8ea83e2 commit 716ea37
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/starkex/test_conditional_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class TestConditionalTransfer():
def test_sign_conditional_transfer(self):
transfer = SignableConditionalTransfer(**CONDITIONAL_TRANSFER_PARAMS)
signature = transfer.sign(MOCK_PRIVATE_KEY)
print(signature)
assert signature == MOCK_SIGNATURE

def test_verify_signature(self):
Expand Down
1 change: 1 addition & 0 deletions tests/starkex/test_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class TestOrder():
def test_sign_order(self):
order = SignableOrder(**ORDER_PARAMS)
signature = order.sign(MOCK_PRIVATE_KEY)
print(signature)
assert signature == MOCK_SIGNATURE

def test_verify_signature_odd_y(self):
Expand Down
1 change: 1 addition & 0 deletions tests/starkex/test_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def test_sign_transfer(self):
transfer = SignableTransfer(
**TRANSFER_PARAMS, network_id=NETWORK_ID_SEPOLIA)
signature = transfer.sign(MOCK_PRIVATE_KEY)
print(signature)
assert signature == MOCK_SIGNATURE

def test_sign_transfer_different_client_id(self):
Expand Down
1 change: 1 addition & 0 deletions tests/starkex/test_withdrawal.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class TestWithdrawal():
def test_sign_withdrawal(self):
withdrawal = SignableWithdrawal(**WITHDRAWAL_PARAMS)
signature = withdrawal.sign(MOCK_PRIVATE_KEY)
print(signature)
assert signature == MOCK_SIGNATURE

def test_verify_signature(self):
Expand Down
8 changes: 8 additions & 0 deletions tests/test_onboarding.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def test_derive_stark_key_on_mainnet_from_web3(self):
stark_key_pair_with_y_coordinate = client.onboarding.derive_stark_key(
signer_address,
)
print(stark_key_pair_with_y_coordinate)
assert stark_key_pair_with_y_coordinate == \
EXPECTED_STARK_KEY_PAIR_WITH_Y_COORDINATE_MAINNET

Expand All @@ -67,6 +68,7 @@ def test_recover_default_api_key_credentials_on_mainnet_from_web3(self):
signer_address,
)
)
print(api_key_credentials)
assert api_key_credentials == EXPECTED_API_KEY_CREDENTIALS_MAINNET

def test_derive_stark_key_on_SEPOLIA_from_web3(self):
Expand All @@ -80,6 +82,7 @@ def test_derive_stark_key_on_SEPOLIA_from_web3(self):
stark_key_pair_with_y_coordinate = client.onboarding.derive_stark_key(
signer_address,
)
print(stark_key_pair_with_y_coordinate)
assert stark_key_pair_with_y_coordinate == \
EXPECTED_STARK_KEY_PAIR_WITH_Y_COORDINATE_SEPOLIA

Expand All @@ -96,6 +99,7 @@ def test_recover_default_api_key_credentials_on_SEPOLIA_from_web3(self):
signer_address,
)
)
print(api_key_credentials)
assert api_key_credentials == EXPECTED_API_KEY_CREDENTIALS_SEPOLIA

def test_derive_stark_key_on_mainnet_from_priv(self):
Expand All @@ -109,6 +113,7 @@ def test_derive_stark_key_on_mainnet_from_priv(self):
stark_key_pair_with_y_coordinate = client.onboarding.derive_stark_key(
signer_address,
)
print(stark_key_pair_with_y_coordinate)
assert stark_key_pair_with_y_coordinate == \
EXPECTED_STARK_KEY_PAIR_WITH_Y_COORDINATE_MAINNET

Expand All @@ -124,6 +129,7 @@ def test_recover_default_api_key_credentials_on_mainnet_from_priv(self):
signer_address,
)
)
print(api_key_credentials)
assert api_key_credentials == EXPECTED_API_KEY_CREDENTIALS_MAINNET

def test_derive_stark_key_on_SEPOLIA_from_priv(self):
Expand All @@ -136,6 +142,7 @@ def test_derive_stark_key_on_SEPOLIA_from_priv(self):
stark_key_pair_with_y_coordinate = client.onboarding.derive_stark_key(
signer_address,
)
print(stark_key_pair_with_y_coordinate)
assert stark_key_pair_with_y_coordinate == \
EXPECTED_STARK_KEY_PAIR_WITH_Y_COORDINATE_SEPOLIA

Expand All @@ -151,4 +158,5 @@ def test_recover_default_api_key_credentials_on_SEPOLIA_from_priv(self):
signer_address,
)
)
print(api_key_credentials)
assert api_key_credentials == EXPECTED_API_KEY_CREDENTIALS_SEPOLIA

0 comments on commit 716ea37

Please sign in to comment.