Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 695cc55 commit bb6c42dCopy full SHA for bb6c42d
test/test_modules.py
@@ -1,11 +1,12 @@
1
import json
2
from datetime import datetime
3
+
4
import os
5
from unittest import TestCase
6
7
from etherscan.etherscan import Etherscan
8
-CONFIG_PATH = "configs/stable.json"
9
+CONFIG_PATH = "etherscan/configs/stable.json"
10
API_KEY = os.environ["API_KEY"] # Encrypted env var by Travis
11
12
@@ -25,7 +26,7 @@ class Case(TestCase):
25
26
def test_methods(self):
27
print(f"\nMODULE: {self._MODULE}")
28
config = load(CONFIG_PATH)
- etherscan = Etherscan.from_config(CONFIG_PATH, API_KEY)
29
+ etherscan = Etherscan(API_KEY)
30
for fun, v in config.items():
31
if not fun.startswith("_"): # disabled if _
32
if v["module"] == self._MODULE:
0 commit comments