Merge pull request #100 from freewind/topcoder

Improve tests and README
pull/101/head
Bernhard Mueller 7 years ago committed by GitHub
commit 7f3d848ce0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      README_DEV.md
  2. 2
      tests/report_test.py

@ -35,6 +35,14 @@ We use `--syncmode full` here because the `eth.blockNumber` will get increased s
If there is no error thrown, you can wait 1 or 2 minutes before running tests. If there is no error thrown, you can wait 1 or 2 minutes before running tests.
And you need to check `eth.coinbase` has no error thrown and `eth.blockNumber` should greater than `0`:
```
$ geth attach
> eth.coinbase
> eth.blockNumber
```
### Run the tests ### Run the tests
```bash ```bash

@ -43,4 +43,4 @@ class AnalysisReportTest(TestCase):
self.assertEqual(_fix_path(report.as_text()), text, "{}: text report is changed".format(str(input_file))) self.assertEqual(_fix_path(report.as_text()), text, "{}: text report is changed".format(str(input_file)))
self.assertEqual(_fix_path(report.as_markdown()), markdown, "{}: markdown report is changed".format(str(input_file))) self.assertEqual(_fix_path(report.as_markdown()), markdown, "{}: markdown report is changed".format(str(input_file)))
self.assertEqual(_fix_path(_fix_debug_data(report.as_json())), json_report, "{}: json report is changed".format(str(input_file))) self.assertEqual(_fix_path(_fix_debug_data(report.as_json())).strip(), json_report.strip(), "{}: json report is changed".format(str(input_file)))

Loading…
Cancel
Save