From f864e85ee3f6cc7e17a71b4647e42033bacce3ed Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Mon, 15 Feb 2016 11:00:41 -0800 Subject: [PATCH] Ported tests to python3 (#261) --- BUILD.md | 8 ++------ test/onionshare_web_test.py | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/BUILD.md b/BUILD.md index 514e5bd4..27f7a30c 100644 --- a/BUILD.md +++ b/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 ``` diff --git a/test/onionshare_web_test.py b/test/onionshare_web_test.py index c7da2171..d683c55b 100644 --- a/test/onionshare_web_test.py +++ b/test/onionshare_web_test.py @@ -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