Ported tests to python3 (#261)

This commit is contained in:
Micah Lee 2016-02-15 11:00:41 -08:00
parent a8c8b56fa1
commit f864e85ee3
2 changed files with 3 additions and 6 deletions

View File

@ -145,14 +145,10 @@ This will prompt you to codesign three binaries and execute one unsigned binary.
## Tests
OnionShare includes [nose](https://nose.readthedocs.org/en/latest/) unit tests. First,
```sh
sudo pip install nose
```
OnionShare includes [nose](https://nose.readthedocs.org/en/latest/) unit tests. First, `sudo apt-get install python3-nose` or `sudo pip3 install nose`.
To run the tests:
```sh
nosetests test
nosetests3 test
```

View File

@ -22,6 +22,7 @@ from nose import with_setup
def test_generate_slug_length():
"""generates a 26-character slug"""
web.generate_slug()
assert len(web.slug) == 26