mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 02:08:08 +02:00
add setup.py + switch to pytest
* pytest: more modern and easy-to-use testing framework
This commit is contained in:
parent
600c527221
commit
807b4cb155
2 changed files with 10 additions and 5 deletions
7
setup.py
Normal file
7
setup.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
from setuptools import setup
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name="Meshroom",
|
||||||
|
description="Photogrammetry Software",
|
||||||
|
requires=['psutil', 'pytest', 'pySide2', "pytest"]
|
||||||
|
)
|
|
@ -1,5 +1,3 @@
|
||||||
from nose.tools import *
|
|
||||||
|
|
||||||
from meshroom import processGraph as pg
|
from meshroom import processGraph as pg
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,9 +13,9 @@ def test_depth():
|
||||||
(tB.output, tC.input)
|
(tB.output, tC.input)
|
||||||
)
|
)
|
||||||
|
|
||||||
assert_equal(tA.getDepth(), 1)
|
assert tA.getDepth() == 1
|
||||||
assert_equal(tB.getDepth(), 2)
|
assert tB.getDepth() == 2
|
||||||
assert_equal(tC.getDepth(), 3)
|
assert tC.getDepth() == 3
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Reference in a new issue