From 3b630a0f59e60549b25ce78583f05d70ea341132 Mon Sep 17 00:00:00 2001 From: Hugo MacDermott-Opeskin Date: Sat, 19 Oct 2024 21:17:49 +1100 Subject: [PATCH] Add version test --- distopia/tests/test_distopia.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/distopia/tests/test_distopia.py b/distopia/tests/test_distopia.py index b1906e33..93aea8c5 100644 --- a/distopia/tests/test_distopia.py +++ b/distopia/tests/test_distopia.py @@ -6,13 +6,16 @@ - def convert_ndarray(*args, dtype): if len(args) == 1: return np.asarray(args[0], dtype=dtype) else: return (np.asarray(a, dtype=dtype) for a in args) + +def test_version(): + assert distopia.__version__ + class TestDistances: def arange_input(self, N, dtype): return np.arange(3 * N, dtype=dtype).reshape(N, 3) @@ -398,4 +401,4 @@ def test_periodic_angles(self, box_bonds, positions_angles, dtype): test3 = distopia.calc_angles_ortho(a, b, c2, box=box) for val in [test1, test2, test3]: - assert_almost_equal(ref, val, self.prec, err_msg="Min image in angle calculation failed") \ No newline at end of file + assert_almost_equal(ref, val, self.prec, err_msg="Min image in angle calculation failed")