summaryrefslogtreecommitdiffstats
path: root/openbb_platform/core/tests/app/model/abstract/test_singleton.py
diff options
context:
space:
mode:
Diffstat (limited to 'openbb_platform/core/tests/app/model/abstract/test_singleton.py')
-rw-r--r--openbb_platform/core/tests/app/model/abstract/test_singleton.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/openbb_platform/core/tests/app/model/abstract/test_singleton.py b/openbb_platform/core/tests/app/model/abstract/test_singleton.py
index d87502e2f67..e586fb00e9d 100644
--- a/openbb_platform/core/tests/app/model/abstract/test_singleton.py
+++ b/openbb_platform/core/tests/app/model/abstract/test_singleton.py
@@ -1,12 +1,18 @@
+"""Tests for the SingletonMeta metaclass."""
+
from openbb_core.app.model.abstract.singleton import SingletonMeta
class MyClass(metaclass=SingletonMeta):
+ """A simple class."""
+
def __init__(self, value):
+ """Initialize the class."""
self.value = value
def test_singleton_instance_creation():
+ """Test the SingletonMeta metaclass with instance creation."""
# Arrange
instance1 = MyClass(42)
instance2 = MyClass(100)
@@ -18,6 +24,8 @@ def test_singleton_instance_creation():
def test_singleton_multiple_classes():
+ """Test the SingletonMeta metaclass with multiple classes."""
+
# Arrange
class AnotherClass(metaclass=SingletonMeta):
def __init__(self, data):