Skip to content

Commit a272c24

Browse files
authored
⬆️ Bump package version to 1.1.9 (#216)
* ⬆️ Bump package version to 1.1.9 Upgrade package version * ✅. Add tests for singleton
1 parent 779ad74 commit a272c24

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
LONG_DESCRIPTION = readme_file.read()
1515

1616
NAME = "electionguard"
17-
VERSION = "1.1.8"
17+
VERSION = "1.1.9"
1818
LICENSE = "MIT"
1919
DESCRIPTION = "ElectionGuard: Support for e2e verified elections."
2020
LONG_DESCRIPTION_CONTENT_TYPE = "text/markdown"

tests/test_singleton.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from unittest import TestCase
2+
from electionguard.singleton import Singleton
3+
4+
5+
class TestSingleton(TestCase):
6+
def test_singleton(self):
7+
singleton = Singleton()
8+
same_instance = singleton.get_instance()
9+
self.assertIsNotNone(singleton)
10+
self.assertIsNotNone(same_instance)
11+
12+
def test_singleton_when_not_initialized(self):
13+
instance = Singleton.get_instance()
14+
self.assertIsNotNone(instance)

0 commit comments

Comments
 (0)