[Pkg-privacy-commits] [onionshare] 29/66: Ported tests to python3 (#261)

Ulrike Uhlig u-guest at moszumanska.debian.org
Wed Apr 13 22:17:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch master
in repository onionshare.

commit f864e85ee3f6cc7e17a71b4647e42033bacce3ed
Author: Micah Lee <micah at micahflee.com>
Date:   Mon Feb 15 11:00:41 2016 -0800

    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 514e5bd..27f7a30 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 c7da217..d683c55 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
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git



More information about the Pkg-privacy-commits mailing list