mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Remove references to nosetests, and replace them with pytest
This commit is contained in:
parent
e54d6b8648
commit
1785cb64e8
@ -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
|
||||||
|
10
BUILD.md
10
BUILD.md
@ -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/
|
||||||
```
|
```
|
||||||
|
@ -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
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user