libtoxav in tests and fix

This commit is contained in:
ingvar1995 2016-10-22 22:47:10 +03:00
parent 821dce5f28
commit 476f074d6a
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ python:
before_install: before_install:
- sudo apt-get install -y checkinstall build-essential - sudo apt-get install -y checkinstall build-essential
- sudo apt-get install portaudio19-dev - sudo apt-get install portaudio19-dev
- sudo apt-get install libconfig-dev libvpx-dev libopus-dev check -qq
install: install:
- pip install PySide --no-index --find-links https://parkin.github.io/python-wheelhouse/; - pip install PySide --no-index --find-links https://parkin.github.io/python-wheelhouse/;
- python ~/virtualenv/python${TRAVIS_PYTHON_VERSION}/bin/pyside_postinstall.py -install - python ~/virtualenv/python${TRAVIS_PYTHON_VERSION}/bin/pyside_postinstall.py -install

View File

@ -57,12 +57,12 @@ class TestFriend:
ProfileHelper('', 'test') ProfileHelper('', 'test')
def create_friend(self, name, status_message, number, tox_id): def create_friend(self, name, status_message, number, tox_id):
app = QtGui.QApplication(sys.argv)
message_getter = None message_getter = None
friend = Friend(message_getter, number, name, status_message, ContactItem(), tox_id) friend = Friend(message_getter, number, name, status_message, ContactItem(), tox_id)
return friend return friend
def test_friend_creation(self): def test_friend_creation(self):
app = QtGui.QApplication(sys.argv)
self.create_singletons() self.create_singletons()
name, status_message, number = 'Friend', 'I am friend!', 0 name, status_message, number = 'Friend', 'I am friend!', 0
tox_id = '76518406F6A9F2217E8DC487CC783C25CC16A15EB36FF32E335A235342C48A39218F515C39A6' tox_id = '76518406F6A9F2217E8DC487CC783C25CC16A15EB36FF32E335A235342C48A39218F515C39A6'