From f6c9d87f155eb376aec20c9adbb324d5d156b86a Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Apr 11 2016 14:27:26 +0000 Subject: fix tests for releases page, and the get_tags_objects test --- diff --git a/pagure/templates/releases.html b/pagure/templates/releases.html index 16b5cf4..77c41a7 100644 --- a/pagure/templates/releases.html +++ b/pagure/templates/releases.html @@ -37,7 +37,7 @@ username=username, repo=repo.name, identifier=tag['object'].oid) }}">
{{tag['date'] | humanize}} - {{ tag['object'].oid | short }} + {{ tag['object'].oid | short }}
{% if tag['objecttype'] == "tag" %} {% if tag['object'].message %} diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py index b0c281d..2e31544 100644 --- a/tests/test_pagure_flask_ui_repo.py +++ b/tests/test_pagure_flask_ui_repo.py @@ -1770,7 +1770,7 @@ index 0000000..fb7093d output = self.app.get('/test/releases') self.assertEqual(output.status_code, 200) self.assertIn('0.0.1', output.data) - self.assertIn('', output.data) + self.assertIn('', output.data) self.assertTrue(output.data.count('tagid'), 1) def test_edit_file(self): diff --git a/tests/test_pagure_lib_git_get_tags_objects.py b/tests/test_pagure_lib_git_get_tags_objects.py index 02ce2c4..0532273 100644 --- a/tests/test_pagure_lib_git_get_tags_objects.py +++ b/tests/test_pagure_lib_git_get_tags_objects.py @@ -26,7 +26,7 @@ def get_tag_name(tags): """ Return a list of the tag names """ output = [] for tag in tags: - output.append(tag.name) + output.append(tag['tagname']) return output