From 6f10ed533853d2aab75fe5a0088b5837d6a3af45 Mon Sep 17 00:00:00 2001 From: Tom Mitchell Date: Thu, 6 Aug 2026 15:52:52 -0400 Subject: [PATCH] Export Model #448 --- sbol2/__init__.py | 1 + test/test_model.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 test/test_model.py diff --git a/sbol2/__init__.py b/sbol2/__init__.py index c379345..a4ad798 100644 --- a/sbol2/__init__.py +++ b/sbol2/__init__.py @@ -25,6 +25,7 @@ from .interaction import Interaction from .location import Location, Range, Cut, GenericLocation from .measurement import Measurement +from .model import Model from .module import Module from .moduledefinition import ModuleDefinition from .object import SBOLObject diff --git a/test/test_model.py b/test/test_model.py new file mode 100644 index 0000000..00a6e49 --- /dev/null +++ b/test/test_model.py @@ -0,0 +1,18 @@ +"""Unit tests for Model.""" + +import unittest + +import sbol2 + + +class TestModel(unittest.TestCase): + """Unit tests for Model.""" + + def test_model_exported(self): + """Test that the Model class is exported from sbol2.""" + # https://github.com/SynBioDex/pySBOL2/issues/448 + self.assertIn("Model", dir(sbol2), "Model is not exported from sbol2.") + + +if __name__ == "__main__": + unittest.main()