We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08b4421 commit 6cae174Copy full SHA for 6cae174
unittest/oszicar_test.py
@@ -3,14 +3,15 @@
3
OsziCar类单元测试.
4
'''
5
import unittest
6
+import commands
7
8
import numpy as np
9
import matplotlib
10
11
from vaspy.iter import OsziCar
12
13
-class TestOsziCar(unittest.TestCase):
14
+class OsziCarTest(unittest.TestCase):
15
16
def setUp(self):
17
#create an instance of OSZICAR file
@@ -36,7 +37,7 @@ def test_plot(self):
36
37
plot = self.x.plot('E0', mode='save')
38
self.assertTrue(isinstance(plot, matplotlib.figure.Figure))
39
-
40
if __name__ == '__main__':
41
- suite = unittest.TestLoader().loadTestsFromTestCase(TestOsziCar)
+ suite = unittest.TestLoader().loadTestsFromTestCase(OsziCarTest)
42
unittest.TextTestRunner(verbosity=2).run(suite)
43
+
0 commit comments