Fixed a few small issues.
This commit is contained in:
parent
9223f3b9a4
commit
9aece94eeb
@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py26,py27,pep8
|
envlist = py27,pep8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import unittest
|
import unittest
|
||||||
import portas.api.v1 as api
|
import portas.api.v1 as api
|
||||||
|
|
||||||
|
|
||||||
class Test(unittest.TestCase):
|
class Test(unittest.TestCase):
|
||||||
def test(self):
|
def test(self):
|
||||||
assert True
|
assert True
|
||||||
|
@ -3,12 +3,15 @@ from mock import MagicMock
|
|||||||
|
|
||||||
import portas.api.v1.router as router
|
import portas.api.v1.router as router
|
||||||
|
|
||||||
|
|
||||||
def my_mock(link, controller, action, conditions):
|
def my_mock(link, controller, action, conditions):
|
||||||
return [link, controller, action, conditions]
|
return [link, controller, action, conditions]
|
||||||
|
|
||||||
|
|
||||||
def func_mock():
|
def func_mock():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
class SanityUnitTests(unittest2.TestCase):
|
class SanityUnitTests(unittest2.TestCase):
|
||||||
|
|
||||||
def test_api(self):
|
def test_api(self):
|
||||||
@ -21,4 +24,3 @@ class SanityUnitTests(unittest2.TestCase):
|
|||||||
object = router.API(mapper)
|
object = router.API(mapper)
|
||||||
|
|
||||||
assert object._router is not None
|
assert object._router is not None
|
||||||
|
|
@ -2,6 +2,7 @@
|
|||||||
distribute>=0.6.24
|
distribute>=0.6.24
|
||||||
|
|
||||||
# Needed for testing
|
# Needed for testing
|
||||||
|
unittest2
|
||||||
coverage
|
coverage
|
||||||
fixtures>=0.3.12
|
fixtures>=0.3.12
|
||||||
mox
|
mox
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py26,py27,pep8
|
envlist = py27,pep8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py26,py27,pep8
|
envlist = py27,pep8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
|
7
tests/selenium/tools/test_requires
Normal file
7
tests/selenium/tools/test_requires
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
xvfb
|
||||||
|
x11-xkb-utils
|
||||||
|
xfonts-100dpi
|
||||||
|
xfonts-75dpi
|
||||||
|
xfonts-scalable
|
||||||
|
xfonts-cyrillic
|
||||||
|
xserver-xorg-core
|
Loading…
x
Reference in New Issue
Block a user