Commit bda7f171 authored by Pierre-Yves Chibon's avatar Pierre-Yves Chibon

Fix the tests for the change in the JSON representation of comment on tickets

parent a15c90a3
......@@ -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": {
......
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment