From 3d6f8c7cc6d14652d5e714dfd16b18d9e11f2bcf Mon Sep 17 00:00:00 2001 From: djeck1432 Date: Tue, 26 Nov 2024 15:32:09 +0100 Subject: [PATCH] fix test cases --- .../handler_tools/data_parser/serializers/zklend.py | 2 -- apps/data_handler/tests/test_zklend_transformer.py | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/data_handler/handler_tools/data_parser/serializers/zklend.py b/apps/data_handler/handler_tools/data_parser/serializers/zklend.py index 9a732991..b5f492c9 100644 --- a/apps/data_handler/handler_tools/data_parser/serializers/zklend.py +++ b/apps/data_handler/handler_tools/data_parser/serializers/zklend.py @@ -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 diff --git a/apps/data_handler/tests/test_zklend_transformer.py b/apps/data_handler/tests/test_zklend_transformer.py index 29b6258c..02b8dbed 100644 --- a/apps/data_handler/tests/test_zklend_transformer.py +++ b/apps/data_handler/tests/test_zklend_transformer.py @@ -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(