• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-eth-py / 17723951463

15 Sep 2025 06:20AM UTC coverage: 89.937% (-4.0%) from 93.974%
17723951463

Pull #1947

github

web-flow
Merge ad31bc77e into ee8dff1a4
Pull Request #1947: Bump mypy from 1.17.1 to 1.18.1

9223 of 10255 relevant lines covered (89.94%)

2.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

43.48
/safe_eth/eth/tests/oracles/test_superfluid.py
1
from django.test import TestCase
3✔
2

3
from eth_account import Account
3✔
4

5
from ... import EthereumClient
3✔
6
from ...oracles import CannotGetPriceFromOracle, SuperfluidOracle, SushiswapOracle
3✔
7
from ..ethereum_test_case import EthereumTestCaseMixin
3✔
8
from ..test_oracles import gno_token_mainnet_address
3✔
9
from ..utils import just_test_if_polygon_node
3✔
10

11

12
class TestSuperfluidOracle(EthereumTestCaseMixin, TestCase):
3✔
13
    def test_get_price(self):
3✔
14
        polygon_node = just_test_if_polygon_node()
3✔
15

16
        self.assertFalse(SuperfluidOracle.is_available(self.ethereum_client))
×
17

18
        ethereum_client_polygon = EthereumClient(polygon_node)
×
19

20
        self.assertTrue(SuperfluidOracle.is_available(ethereum_client_polygon))
×
21

22
        sushi_oracle_polygon = SushiswapOracle(ethereum_client_polygon)
×
23
        superfluid_oracle_polygon = SuperfluidOracle(
×
24
            ethereum_client_polygon, sushi_oracle_polygon
25
        )
26
        uscdcx_address_polygon = "0xCAa7349CEA390F89641fe306D93591f87595dc1F"
×
27
        price = superfluid_oracle_polygon.get_price(uscdcx_address_polygon)
×
28
        self.assertGreater(price, 0.0)
×
29

30
        error_message = "It is not a wrapper Super Token"
×
31
        with self.assertRaisesMessage(CannotGetPriceFromOracle, error_message):
×
32
            superfluid_oracle_polygon.get_price(gno_token_mainnet_address)
×
33

34
        with self.assertRaisesMessage(CannotGetPriceFromOracle, error_message):
×
35
            superfluid_oracle_polygon.get_price(Account.create().address)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc