From f92f782bc62ce463808241f6ab20e8345c8d97a2 Mon Sep 17 00:00:00 2001 From: Christian Hill Date: Wed, 29 Jan 2025 19:39:17 +0100 Subject: [PATCH] Remove email address --- setup.py | 1 - tests/test_units.py | 7 +------ tests/test_userdef_units.py | 16 ++++++++++++++++ 3 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 tests/test_userdef_units.py diff --git a/setup.py b/setup.py index fb77d5e..783b91f 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,6 @@ long_description_content_type="text/x-rst", url="https://github.com/xnx/pyqn", author="Christian Hill", - author_email="xn.hill@gmail.com", classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", diff --git a/tests/test_units.py b/tests/test_units.py index cae12be..314f6e6 100644 --- a/tests/test_units.py +++ b/tests/test_units.py @@ -1,9 +1,4 @@ -# test_units.py -# -# Copyright (C) 2012-2016 Christian Hill -# -# Version 1.0 -# Unit tests for the Units class. +"""Unit tests of basic functionality for the Units class.""" import unittest from fractions import Fraction diff --git a/tests/test_userdef_units.py b/tests/test_userdef_units.py new file mode 100644 index 0000000..65e367a --- /dev/null +++ b/tests/test_userdef_units.py @@ -0,0 +1,16 @@ +import unittest +from fractions import Fraction +from pyqn.units import Units +from pyqn.dimensions import Dimensions, d_energy + + +class UserDefinedUnitsCheck(unittest.TestCase): + """Unit tests for user-defined units.""" + + def test_dimensionless_units(self): + return + u1 = Units("cm-2.molec-1", dimensionless=("molec",)) + + +if __name__ == "__main__": + unittest.main()