Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fea7b0d

Browse files
authored
Updated unittest instructions
1 parent c79bffe commit fea7b0d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ All of the *free* GET endpoints from the following modules are provided:
107107

108108
</details>
109109

110-
If you think that a newly-added method is missing, kindly open an [issue](https://github.com/pcko1/etherscan-python/issues) as a feature request and I will do my best to add it.
110+
*If you think that a newly-added method is missing, kindly open an [issue](https://github.com/pcko1/etherscan-python/issues) as a feature request and I will do my best to add it.*
111111

112112
## Installation
113113

@@ -131,12 +131,12 @@ Then, install the package:
131131
pip install .
132132
```
133133

134-
## Run unittests
134+
## Run unittests (bash)
135135

136-
Test that everything looks OK on your end before proceeding:
136+
In `bash`, test that everything looks OK on your end using your `API_KEY` (without quotation marks) before proceeding:
137137

138138
``` bash
139-
coverage run -m unittest discover && coverage report -m
139+
bash run_tests.sh YOUR_API_KEY
140140
````
141141

142142
This will regenerate the logs under `logs/` with the most recent results and the timestamp of the execution.
@@ -148,7 +148,7 @@ In `python`, create a client with your personal [Etherscan.io](Etherscan.io) API
148148
``` python
149149
from etherscan import Etherscan
150150
151-
api_key = YOUR_API_KEY
151+
api_key = YOUR_API_KEY # use quotation marks because it is a Python string
152152
config_path = "etherscan/configs/stable.json"
153153
154154
eth = Etherscan.from_config(config_path, api_key)

0 commit comments

Comments
 (0)