Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
djeck1432 committed Nov 26, 2024
1 parent 1317737 commit 3d6f8c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,7 @@ class CollateralEnabledDisabledEventData(BaseModel):
Attributes:
user: The user address for whom collateral is being enabled/disabled.
token: The token address being enabled/disabled as collateral.
enabled: Boolean indicating if collateral is being enabled (True) or disabled (False).
"""

user: str
token: str
enabled: bool
3 changes: 1 addition & 2 deletions apps/data_handler/tests/test_zklend_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,9 @@ def test_save_collateral_enabled_event(transformer, sample_collateral_enabled_ev
Test saving a collateral enabled event.
"""
transformer.api_connector.get_data.return_value = [sample_collateral_enabled_event_data]

expected_parsed_data = CollateralEnabledDisabledEventData(
user=sample_collateral_enabled_event_data['data'][0],
token=sample_collateral_enabled_event_data['data'][1]
token=sample_collateral_enabled_event_data['data'][1],
)

transformer.fetch_and_transform_events(
Expand Down

0 comments on commit 3d6f8c7

Please sign in to comment.