added a test case
This commit is contained in:
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
15
tests/test_saveagr.py
Normal file
15
tests/test_saveagr.py
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import unittest
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
|
import tudplot
|
||||||
|
tudplot.activate()
|
||||||
|
|
||||||
|
class TestStringMethods(unittest.TestCase):
|
||||||
|
|
||||||
|
def test_saveagr(self):
|
||||||
|
plt.plot([1,2,4,4.9,3.2,1.2,0.5,0.9,1.5],'o-', label='Test' )
|
||||||
|
plt.xlabel("1000 K/T")
|
||||||
|
plt.ylabel(r"log($T_1$) in 1/s")
|
||||||
|
tudplot.saveagr('test.agr')
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
Reference in New Issue
Block a user