Rfaulk has uploaded a new change for review. https://gerrit.wikimedia.org/r/88690
Change subject: add - test for test_dulwich_tag. ...................................................................... add - test for test_dulwich_tag. Change-Id: Ica031a9969a3c470ec82f35a6a8cdbee3003936b --- M sartoris/tests/test.py 1 file changed, 8 insertions(+), 5 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/sartoris refs/changes/90/88690/1 diff --git a/sartoris/tests/test.py b/sartoris/tests/test.py index 3965828..da0a46e 100644 --- a/sartoris/tests/test.py +++ b/sartoris/tests/test.py @@ -214,12 +214,15 @@ def test_dulwich_tag(self): """ Tests method Sartoris::_dulwich_tag + + 1. Call _dulwich_tag + 2. Check most recent tag to verify tag exists """ - - # 1. Call _dulwich_tag - # 2. Check _repo['refs/tags/' + tag] to verify tag exists - - assert False + s = Sartoris() + tag = 'test_tag' + s._dulwich_tag(tag, s._make_author()) + tags = s._dulwich_get_tags() + assert tags.keys()[0] == tag @setup_deco def test_dulwich_reset_to_tag(self): -- To view, visit https://gerrit.wikimedia.org/r/88690 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ica031a9969a3c470ec82f35a6a8cdbee3003936b Gerrit-PatchSet: 1 Gerrit-Project: sartoris Gerrit-Branch: master Gerrit-Owner: Rfaulk <rfaulk...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits