Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
### Tests
- Formatted contract unit tests with black for consistent style. (#1523)
- Format account test files with Black (#1519)
- Improve unit test coverage for `Hbar`, including edge cases, validation, comparisons, and hashing. (#1483)
- Standardize formatting of `evm_address_test.py` using Black for improved consistency and readability (#1529)
- Improve unit test coverage for Hbar, including edge cases, validation, comparisons, and hashing. (#1483)
- Standardize formatting of evm_address_test.py using Black for improved consistency and readability (#1529)
- Formatted unit test files using Black.
- Format `tests/unit/network_tls_test.py` with black for code style consistency (#1543)
- Formatted client_test.py using black.
- Format tests/unit/network_tls_test.py with black for code style consistency (#1543)
- Formatted `ethereum_transaction_test.py` using Black.
- Formatted client_test.py using Black.

### Added
- Added Windows setup guide for SDK developers (`docs/sdk_developers/training/setup/setup_windows.md`) with PowerShell installation instructions. (#1570)
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/ethereum_transaction_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,15 @@ def test_to_proto(mock_client, ethereum_params):
assert proto.signedTransactionBytes
assert len(proto.signedTransactionBytes) > 0


def test_build_scheduled_body_raises_exception():
"""Test that build_scheduled_body raises ValueError."""
schedule_tx = EthereumTransaction()

with pytest.raises(ValueError, match="Cannot schedule an EthereumTransaction"):
schedule_tx.build_scheduled_body()


def test_ethereum_transaction_can_execute():
"""Test that an ethereum transaction can be executed successfully."""
ok_response = transaction_response_pb2.TransactionResponse()
Expand Down