mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-13 16:29:31 -05:00
commit
3ce43a65b6
4
.gitignore
vendored
4
.gitignore
vendored
@ -37,5 +37,9 @@ nosetests.xml
|
||||
# vim
|
||||
*.swp
|
||||
|
||||
# tags
|
||||
ctags
|
||||
tags
|
||||
|
||||
# OSX
|
||||
.DS_Store
|
||||
|
@ -3,8 +3,8 @@ python:
|
||||
- "2.6"
|
||||
- "2.7"
|
||||
# command to install dependencies
|
||||
before_install: "sudo apt-get install -y build-essential fakeroot python-all python-stdeb python-flask python-qt4 python-socksipy"
|
||||
install: "pip install nose flask stem"
|
||||
before_install: "sudo apt-get install -y build-essential fakeroot python-all python-stdeb python-qt4"
|
||||
install: "pip install nose flask stem pysocks"
|
||||
# command to run tests
|
||||
script: nosetests test
|
||||
|
||||
|
@ -23,6 +23,7 @@ from nose import with_setup
|
||||
def test_choose_port_returns_a_port_number():
|
||||
"choose_port() returns a port number"
|
||||
app = OnionShare()
|
||||
app.choose_port()
|
||||
assert 1024 <= app.port <= 65535
|
||||
|
||||
def test_choose_port_returns_an_open_port():
|
||||
|
Loading…
Reference in New Issue
Block a user