update readme with example pyspec import

This commit is contained in:
protolambda 2019-03-28 23:27:28 +08:00
parent 58f09b20f5
commit f2703bc8d3
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 6 additions and 0 deletions

View File

@ -109,6 +109,12 @@ if __name__ == "__main__":
``` ```
And to use the pyspec:
```
from eth2.phase0 import spec
```
Recommendations: Recommendations:
- you can have more than just 1 generator, e.g. ` gen_runner.run_generator("foo", [bar_test_suite, abc_test_suite, example_test_suite])` - you can have more than just 1 generator, e.g. ` gen_runner.run_generator("foo", [bar_test_suite, abc_test_suite, example_test_suite])`
- you can concatenate lists of test cases, if you don't want to split it up in suites. - you can concatenate lists of test cases, if you don't want to split it up in suites.