Refactor tests
This commit is contained in:
parent
cc49f26b77
commit
3fa1fb54f1
14
tests/test.py
Normal file
14
tests/test.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
"""prototorch.models test suite."""
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class TestDummy(unittest.TestCase):
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_dummy(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
@ -1,6 +0,0 @@
|
|||||||
import unittest
|
|
||||||
|
|
||||||
|
|
||||||
class TestDummy(unittest.TestCase):
|
|
||||||
def test_one(self):
|
|
||||||
self.assertEqual(True, True)
|
|
@ -5,13 +5,13 @@ failed=0
|
|||||||
for example in $(find $1 -maxdepth 1 -name "*.py")
|
for example in $(find $1 -maxdepth 1 -name "*.py")
|
||||||
do
|
do
|
||||||
echo -n "$x" $example '... '
|
echo -n "$x" $example '... '
|
||||||
export DISPLAY= && python $example --fast_dev_run 1 &> /dev/null
|
export DISPLAY= && python $example --fast_dev_run 1 &> /dev/null
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
echo "Failed!!!!"
|
echo "FAILED!!"
|
||||||
failed=1
|
failed=1
|
||||||
else
|
else
|
||||||
echo "Success."
|
echo "SUCCESS!"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
exit $failed
|
exit $failed
|
||||||
|
Loading…
Reference in New Issue
Block a user