| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from tests import APITestCase, mainnet_client, WALLET_DEVEL |
||
| 2 | |||
| 3 | |||
| 4 | class TestTradeHubGetProfile(APITestCase): |
||
| 5 | |||
| 6 | def setUp(self) -> None: |
||
| 7 | self._client = mainnet_client |
||
| 8 | |||
| 9 | def test_get_profile_structure(self): |
||
| 10 | """ |
||
| 11 | Check if response match expected dict structure. |
||
| 12 | :return: |
||
| 13 | """ |
||
| 14 | |||
| 15 | expect: dict = { |
||
| 16 | "address": str, |
||
| 17 | "last_seen_block": str, |
||
| 18 | "last_seen_time": str, |
||
| 19 | "twitter": str, |
||
| 20 | "username": str, |
||
| 21 | } |
||
| 22 | |||
| 23 | result: dict = self._client.get_profile(WALLET_DEVEL) |
||
| 24 | |||
| 25 | self.assertDictStructure(expect, result) |
||
| 26 |