Rfaulk has uploaded a new change for review.
https://gerrit.wikimedia.org/r/66378
Change subject: add. Test that sartoris correctly implements singleton.
......................................................................
add. Test that sartoris correctly implements singleton.
Change-Id: I7a800592256b339bbcc43158b3d6345d1127e81d
---
M sartoris/tests/test.py
1 file changed, 4 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/sartoris refs/changes/78/66378/1
diff --git a/sartoris/tests/test.py b/sartoris/tests/test.py
index b40ba6d..46c3084 100644
--- a/sartoris/tests/test.py
+++ b/sartoris/tests/test.py
@@ -81,9 +81,10 @@
s = Sartoris()
assert 'deploy_file' in s.config
- def test___new__(self):
- # sartoris = Sartoris(*args, **kwargs)
- assert False # TODO: implement your test here
+ def test_singleton(self):
+ s1 = Sartoris()
+ s2 = Sartoris()
+ assert s1 == s2
class TestSartorisFunctionality(unittest.TestCase):
--
To view, visit https://gerrit.wikimedia.org/r/66378
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7a800592256b339bbcc43158b3d6345d1127e81d
Gerrit-PatchSet: 1
Gerrit-Project: sartoris
Gerrit-Branch: master
Gerrit-Owner: Rfaulk <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits