mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-27 00:09:50 -05:00
Ported tests to python3 (#261)
This commit is contained in:
parent
a8c8b56fa1
commit
f864e85ee3
8
BUILD.md
8
BUILD.md
@ -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
|
||||
```
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user