Skip to content

Commit 6cae174

Browse files
committed
Change test case class name.
1 parent 08b4421 commit 6cae174

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

unittest/oszicar_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
OsziCar类单元测试.
44
'''
55
import unittest
6+
import commands
67

78
import numpy as np
89
import matplotlib
910

1011
from vaspy.iter import OsziCar
1112

1213

13-
class TestOsziCar(unittest.TestCase):
14+
class OsziCarTest(unittest.TestCase):
1415

1516
def setUp(self):
1617
#create an instance of OSZICAR file
@@ -36,7 +37,7 @@ def test_plot(self):
3637
plot = self.x.plot('E0', mode='save')
3738
self.assertTrue(isinstance(plot, matplotlib.figure.Figure))
3839

39-
4040
if __name__ == '__main__':
41-
suite = unittest.TestLoader().loadTestsFromTestCase(TestOsziCar)
41+
suite = unittest.TestLoader().loadTestsFromTestCase(OsziCarTest)
4242
unittest.TextTestRunner(verbosity=2).run(suite)
43+

0 commit comments

Comments
 (0)