From 96258c47ab305b46f0e103d04dc93d954cf78f82 Mon Sep 17 00:00:00 2001 From: Markus Rosenstihl Date: Thu, 6 Nov 2025 17:36:02 +0100 Subject: [PATCH] added a test case --- tests/__init__.py | 0 tests/test_saveagr.py | 15 +++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/__init__.py create mode 100644 tests/test_saveagr.py diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_saveagr.py b/tests/test_saveagr.py new file mode 100644 index 0000000..1c93bfe --- /dev/null +++ b/tests/test_saveagr.py @@ -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()