Browse Source

fixed tests so they run properly under tox, and added verbosity to test output

master
Corey Goldberg 6 years ago
parent
commit
3841f2b74d
2 changed files with 3 additions and 8 deletions
  1. +1
    -6
      test_xvfb.py
  2. +2
    -2
      tox.ini

+ 1
- 6
test_xvfb.py View File

@ -4,18 +4,13 @@
from xvfbwrapper import Xvfb
import os
import sys
import unittest
class TestXvfb(unittest.TestCase):
def setUp(self):
sys.stdout = sys.__stdout__
self.addCleanup(self.restore_stdout)
def restore_stdout(self):
sys.stdout = sys.__stdout__
os.environ['DISPLAY'] = ':0'
def test_start(self):
xvfb = Xvfb()


+ 2
- 2
tox.ini View File

@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
envlist = flake8, py27, py32, py33
envlist = flake8, py27, py32, py33, py34, pypy
[flake8]
exclude = .tox, build
@ -14,7 +14,7 @@ deps =
nose
commands =
{envpython} setup.py install
nosetests
nosetests -v
[testenv:flake8]
deps =


Loading…
Cancel
Save