Skip to content

Commit 0c37867

Browse files
authored
chore: format query unit tests with black (hiero-ledger#1670)
Signed-off-by: Shravya Jallepally <jallepally0.0shravya@gmail.com>
1 parent d15092c commit 0c37867

File tree

3 files changed

+128
-68
lines changed

3 files changed

+128
-68
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
2626
- Format tests/unit/network_tls_test.py with black for code style consistency (#1543)
2727
- Formatted `ethereum_transaction_test.py` using Black.
2828
- Formatted client_test.py using Black.
29+
- Format tests/unit/query*.py using black (#1547)
2930

3031
### Added
3132
- Add `__repr__()` method to `TopicId` class for improved debugging with constructor-style representation (#1629)

tests/unit/query_nodes_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from hiero_sdk_python.query.query import Query
33
from hiero_sdk_python.account.account_id import AccountId
44

5+
56
def test_set_single_node_account_id():
67
q = Query()
78
node = AccountId(0, 0, 3)
@@ -11,6 +12,7 @@ def test_set_single_node_account_id():
1112
assert q.node_account_ids == [node]
1213
assert q._used_node_account_id is None # not selected until execution
1314

15+
1416
def test_set_multiple_node_account_ids():
1517
q = Query()
1618
nodes = [AccountId(0, 0, 3), AccountId(0, 0, 4)]
@@ -20,6 +22,7 @@ def test_set_multiple_node_account_ids():
2022
assert q.node_account_ids == nodes
2123
assert q._used_node_account_id is None
2224

25+
2326
def test_select_node_account_id():
2427
q = Query()
2528
nodes = [AccountId(0, 0, 3), AccountId(0, 0, 4)]

0 commit comments

Comments
 (0)