From bda7f171dd6203eb436afa97a185a6607249b8aa Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 27 2016 17:39:59 +0000 Subject: Fix the tests for the change in the JSON representation of comment on tickets --- diff --git a/tests/test_pagure_flask_api_issue.py b/tests/test_pagure_flask_api_issue.py index e668cfe..ad2520c 100644 --- a/tests/test_pagure_flask_api_issue.py +++ b/tests/test_pagure_flask_api_issue.py @@ -1034,6 +1034,7 @@ class PagureFlaskApiIssuetests(tests.Modeltests): "date_created": "1435821770", "edited_on": None, "editor": None, + "notification": False, "id": 1, "parent": None, "user": { @@ -1059,6 +1060,7 @@ class PagureFlaskApiIssuetests(tests.Modeltests): "date_created": "1435821770", "edited_on": None, "editor": None, + "notification": False, "id": 1, "parent": None, "user": { @@ -1104,6 +1106,7 @@ class PagureFlaskApiIssuetests(tests.Modeltests): "date_created": "1435821770", "edited_on": None, "editor": None, + "notification": False, "id": 2, "parent": None, "user": { diff --git a/tests/test_pagure_lib_git.py b/tests/test_pagure_lib_git.py index 6eb452b..f490f99 100644 --- a/tests/test_pagure_lib_git.py +++ b/tests/test_pagure_lib_git.py @@ -19,7 +19,6 @@ import os import tempfile import pygit2 from mock import patch -from pagure.lib.repo import PagureRepo sys.path.insert(0, os.path.join(os.path.dirname( os.path.abspath(__file__)), '..')) @@ -27,6 +26,8 @@ sys.path.insert(0, os.path.join(os.path.dirname( import pagure.lib.git import tests +from pagure.lib.repo import PagureRepo + class PagureLibGittests(tests.Modeltests): """ Tests for pagure.lib.git """ @@ -549,7 +550,7 @@ diff --git a/123 b/456 index 458821a..77674a8 --- a/123 +++ b/456 -@@ -1,7 +1,24 @@ +@@ -1,7 +1,25 @@ { "assignee": null, "blocks": [], @@ -561,6 +562,7 @@ index 458821a..77674a8 + "edited_on": null, + "editor": null, + "id": 1, ++ "notification": false, + "parent": null, + "user": { + "default_email": "foo@bar.com",