2019-03-27 18:30:47 +00:00
|
|
|
# ETH 2.0 py-tests
|
|
|
|
|
|
|
|
These tests are not intended for client-consumption.
|
|
|
|
These tests are sanity tests, to verify if the spec itself is consistent.
|
|
|
|
|
|
|
|
There are ideas to port these tests to the YAML test suite,
|
|
|
|
but we are still looking for inputs on how this should work.
|
|
|
|
|
|
|
|
## How to run tests
|
|
|
|
|
2019-03-28 15:23:36 +00:00
|
|
|
### Automated
|
|
|
|
|
|
|
|
Run `make test` from the root of the spec repository.
|
|
|
|
|
|
|
|
### Manual
|
|
|
|
|
2019-03-27 18:30:47 +00:00
|
|
|
From within the py_tests folder:
|
|
|
|
|
|
|
|
Install dependencies:
|
|
|
|
```bash
|
|
|
|
python3 -m venv venv
|
2019-03-28 15:10:16 +00:00
|
|
|
. venv/bin/activate
|
2019-03-27 18:30:47 +00:00
|
|
|
pip3 install -r requirements.txt
|
|
|
|
```
|
2019-03-28 15:10:16 +00:00
|
|
|
Note: make sure to run `make pyspec` from the root of the specs repository, to build the pyspec requirement.
|
2019-03-27 18:30:47 +00:00
|
|
|
|
|
|
|
Run the tests:
|
|
|
|
```
|
|
|
|
pytest -m minimal_config .
|
|
|
|
```
|