From c8c351a9be4cca67c5f884cfceab9f62bd28197d Mon Sep 17 00:00:00 2001 From: Alvin Noe Ladines Date: Fri, 16 Feb 2024 11:55:41 +0100 Subject: [PATCH] Add basic testing --- tests/__init__.py | 0 tests/test_runschema.py | 10 +++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 tests/__init__.py diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_runschema.py b/tests/test_runschema.py index da244bb..da5eccb 100644 --- a/tests/test_runschema.py +++ b/tests/test_runschema.py @@ -16,7 +16,15 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from ..runschema.calculation import Calculation +from ..runschema.method import Method +from ..runschema.run import Run +from ..runschema.system import System def test_schema(): - pass + run = Run() + assert run.m_def.definition_id == 'fc17fdfdcba5aef2c02835a81ed65f95f314b687' + run.calculation.append(Calculation()) + run.method.append(Method()) + run.system.append(System())