Merge pull request #120 from r4v5/fix-travis

Fix the travis build
This commit is contained in:
Micah Lee 2014-09-02 17:12:05 -07:00
commit 3ce43a65b6
3 changed files with 7 additions and 2 deletions

4
.gitignore vendored
View File

@ -37,5 +37,9 @@ nosetests.xml
# vim
*.swp
# tags
ctags
tags
# OSX
.DS_Store

View File

@ -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

View File

@ -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():