add setup.py + switch to pytest

* pytest: more modern and easy-to-use testing framework
This commit is contained in:
Yann Lanthony 2017-09-19 12:11:29 +02:00
parent 600c527221
commit 807b4cb155
2 changed files with 10 additions and 5 deletions

7
setup.py Normal file
View file

@ -0,0 +1,7 @@
from setuptools import setup
setup(
name="Meshroom",
description="Photogrammetry Software",
requires=['psutil', 'pytest', 'pySide2', "pytest"]
)

View file

@ -1,5 +1,3 @@
from nose.tools import *
from meshroom import processGraph as pg
@ -15,9 +13,9 @@ def test_depth():
(tB.output, tC.input)
)
assert_equal(tA.getDepth(), 1)
assert_equal(tB.getDepth(), 2)
assert_equal(tC.getDepth(), 3)
assert tA.getDepth() == 1
assert tB.getDepth() == 2
assert tC.getDepth() == 3
if __name__ == '__main__':