def test_no_versions(self): self.assertEqual(SemVer.get_current_version().__repr__(), '0.0.0')
def test_tagged_versions(self, mock_tags): mock_tags.assert_not_called() self.assertEqual(SemVer.get_current_version().__repr__(), '1.0.0') mock_tags.assert_called_once_with()
def test_with_active_release_branch(self, mock_active): mock_active.assert_not_called() self.assertEqual(SemVer.get_current_version().__repr__(), '1.2.3') mock_active.assert_called_once_with()