Remove references to nosetests, and replace them with pytest

This commit is contained in:
Micah Lee 2017-07-09 10:55:16 -07:00
parent e54d6b8648
commit 1785cb64e8
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
4 changed files with 5 additions and 10 deletions

View File

@ -9,7 +9,6 @@ python:
- "3.7-dev" - "3.7-dev"
- "nightly" - "nightly"
# command to install dependencies # command to install dependencies
# before_install: "sudo apt-get update; sudo apt-get install -y python3-nose python3-flask python3-stem python3-pyqt5"
install: install:
- pip install Flask==0.12 stem==1.5.4 pytest-cov coveralls - pip install Flask==0.12 stem==1.5.4 pytest-cov coveralls
# command to run tests # command to run tests

View File

@ -11,9 +11,9 @@ cd onionshare
Install the needed dependencies: Install the needed dependencies:
For Debian-like distros: `apt install -y build-essential fakeroot python3-all python3-stdeb dh-python python3-flask python3-stem python3-pyqt5 python-nautilus python3-nose tor` For Debian-like distros: `apt install -y build-essential fakeroot python3-all python3-stdeb dh-python python3-flask python3-stem python3-pyqt5 python-nautilus python3-pytest tor`
For Fedora-like distros: `dnf install -y rpm-build python3-flask python3-stem python3-qt5 nautilus-python tor` For Fedora-like distros: `dnf install -y rpm-build python3-flask python3-stem python3-qt5 python3-pytest nautilus-python tor`
After that you can try both the CLI and the GUI version of OnionShare: After that you can try both the CLI and the GUI version of OnionShare:
@ -126,10 +126,8 @@ This will prompt you to codesign three binaries and execute one unsigned binary.
## Tests ## Tests
OnionShare includes [nose](https://nose.readthedocs.org/en/latest/) unit tests. First, `sudo apt-get install python3-nose` or `sudo pip3 install nose`. OnionShare includes PyTest unit tests. To run the tests:
To run the tests:
```sh ```sh
nosetests3 test pytest test/
``` ```

View File

@ -2,5 +2,3 @@
# Pre-push hook. If you want to test with a different version of firefox, put # Pre-push hook. If you want to test with a different version of firefox, put
# the path in the CFX_FIREFOX environment variable. # the path in the CFX_FIREFOX environment variable.
nosetests test

View File

@ -1,6 +1,6 @@
[DEFAULT] [DEFAULT]
Package3: onionshare Package3: onionshare
Depends3: python3-flask, python3-stem, python3-pyqt5, python-nautilus, tor Depends3: python3-flask, python3-stem, python3-pyqt5, python-nautilus, tor
Build-Depends: python3-nose, python3-flask, python3-stem, python3-pyqt5 Build-Depends: python3-pytest, python3-flask, python3-stem, python3-pyqt5
Suite: xenial Suite: xenial
X-Python3-Version: >= 3.4 X-Python3-Version: >= 3.4