Skip to content

Commit 0c31f29

Browse files
authored
chore: reuse shared contract_id fixture in contract update tests (#2549)
Signed-off-by: ctxnn <chiragtaneja.work@gmail.com>
1 parent 0b3e553 commit 0c31f29

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

tests/unit/contract_update_transaction_test.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import pytest
88

99
from hiero_sdk_python.account.account_id import AccountId
10-
from hiero_sdk_python.contract.contract_id import ContractId
1110
from hiero_sdk_python.contract.contract_update_transaction import (
1211
ContractUpdateParams,
1312
ContractUpdateTransaction,
@@ -25,16 +24,10 @@
2524

2625

2726
@pytest.fixture
28-
def contract_id():
29-
"""Fixture for contract ID."""
30-
return ContractId(0, 0, 123)
31-
32-
33-
@pytest.fixture
34-
def update_params():
27+
def update_params(contract_id):
3528
"""Fixture for contract update parameters."""
3629
return {
37-
"contract_id": ContractId(0, 0, 123),
30+
"contract_id": contract_id,
3831
"memo": "Updated contract memo",
3932
"admin_key": PrivateKey.generate().public_key(),
4033
"auto_renew_period": Duration(7776000), # 90 days

0 commit comments

Comments
 (0)