Add instructions and test for running against pytest.

This commit is contained in:
Dorian 2019-02-06 09:04:04 -05:00
parent a650193eec
commit 4000c1a86a
2 changed files with 6 additions and 0 deletions

View File

@ -12,10 +12,13 @@ Insure the following dependencies are in place:
* Install using `rustup toolchain install nightly`
* Set default toolchain `rustup default nightly`
* Python 3 Development headers (python3-dev in Ubuntu)
* pipenv `pip install --user pipenv`
## Running the Python example
1. Build the rust crate first: `cargo build`
1. Create the Python package with: `pyo3 develop`
1. Run the tests: `pytest test.py`
## Documentation

View File

@ -1,2 +1,5 @@
import unit_converter
def test_using_unit_converter():
assert unit_converter.convert_celsius_to_fahrenheit(25.0) == 77.0