Skip to content

Commit

Permalink
Fix testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcertora committed Dec 29, 2024
1 parent 04d87a6 commit 1af90e1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Quorum/tests/checks/test_price_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ def test_source_code_clean():
}
"""
cleaned = Checks.price_feed.remove_solidity_comments(code)
expected = """contract AaveV2Ethereum_ReserveFactorUpdatesMidJuly_20240711 is IProposalGenericExecutor {
expected = """pragma solidity ^0.8.0;
import {IProposalGenericExecutor} from 'aave-helpers/interfaces/IProposalGenericExecutor.sol';
import {AaveV2Ethereum, AaveV2EthereumAssets, ILendingPoolConfigurator} from 'aave-address-book/AaveV2Ethereum.sol';
contract AaveV2Ethereum_ReserveFactorUpdatesMidJuly_20240711 is IProposalGenericExecutor {
ILendingPoolConfigurator public constant POOL_CONFIGURATOR =
ILendingPoolConfigurator(AaveV2Ethereum.POOL_CONFIGURATOR);
Expand All @@ -73,4 +78,4 @@ def test_source_code_clean():
POOL_CONFIGURATOR.setReserveFactor(AaveV2EthereumAssets.WETH_UNDERLYING, WETH_RF);
}
}"""
assert cleaned.replace(" ", "") == expected.replace(" ", "")
assert cleaned.strip() == expected.strip()

0 comments on commit 1af90e1

Please sign in to comment.