Commit d7285b8b authored by Vivek Anand's avatar Vivek Anand

modify tests after adding closed_at column in issues

parent 9c641759
......@@ -160,6 +160,7 @@ class PagureFlaskApiIssuetests(tests.Modeltests):
"comments": [],
"content": "This issue needs attention",
"date_created": "1431414800",
"closed_at": None,
"depends": [],
"id": 1,
"priority": None,
......@@ -212,6 +213,7 @@ class PagureFlaskApiIssuetests(tests.Modeltests):
"comments": [],
"content": "This issue needs attention",
"date_created": "1431414800",
"closed_at": None,
"depends": [],
"id": 1,
"priority": None,
......@@ -267,6 +269,7 @@ class PagureFlaskApiIssuetests(tests.Modeltests):
"comments": [],
"content": "This issue needs attention",
"date_created": "1431414800",
"closed_at": None,
"depends": [],
"id": 1,
"priority": None,
......@@ -308,6 +311,7 @@ class PagureFlaskApiIssuetests(tests.Modeltests):
"comments": [],
"content": "This issue needs attention",
"date_created": "1431414800",
"closed_at": None,
"depends": [],
"id": 1,
"priority": None,
......@@ -326,6 +330,7 @@ class PagureFlaskApiIssuetests(tests.Modeltests):
"comments": [],
"content": "We should work on this",
"date_created": "1431414800",
"closed_at": None,
"depends": [],
"id": 2,
"priority": None,
......@@ -401,6 +406,7 @@ class PagureFlaskApiIssuetests(tests.Modeltests):
"comments": [],
"content": "This issue needs attention",
"date_created": "1431414800",
"closed_at": None,
"depends": [],
"id": 1,
"priority": None,
......@@ -419,6 +425,7 @@ class PagureFlaskApiIssuetests(tests.Modeltests):
"comments": [],
"content": "We should work on this",
"date_created": "1431414800",
"closed_at": None,
"depends": [],
"id": 2,
"priority": None,
......@@ -476,6 +483,7 @@ class PagureFlaskApiIssuetests(tests.Modeltests):
"comments": [],
"content": "This issue needs attention",
"date_created": "1431414800",
"closed_at": None,
"depends": [],
"id": 1,
"priority": None,
......@@ -570,6 +578,7 @@ class PagureFlaskApiIssuetests(tests.Modeltests):
"comments": [],
"content": "We should work on this",
"date_created": "1431414800",
"closed_at": None,
"depends": [],
"id": 2,
"priority": None,
......@@ -597,6 +606,7 @@ class PagureFlaskApiIssuetests(tests.Modeltests):
"comments": [],
"content": "We should work on this",
"date_created": "1431414800",
"closed_at": None,
"depends": [],
"id": 2,
"priority": None,
......
......@@ -470,10 +470,11 @@ new file mode 100644
index 0000000..60f7480
--- /dev/null
+++ b/456
@@ -0,0 +1,23 @@
@@ -0,0 +1,24 @@
+{
+ "assignee": null,
+ "blocks": [],
+ "closed_at": null,
+ "comments": [],
+ "content": "We should work on this",
+ "date_created": null,
......@@ -515,6 +516,9 @@ index 0000000..60f7480
elif 'date_created' in row:
t = row.split(': ')[0]
row = '%s: null,' % t
elif 'closed_at' in row:
t = row.split(': ')[0]
row = '%s: null,' % t
elif row.startswith('index 00'):
row = 'index 0000000..60f7480'
elif row.startswith('+++ b/'):
......@@ -550,10 +554,10 @@ diff --git a/123 b/456
index 458821a..77674a8
--- a/123
+++ b/456
@@ -1,7 +1,25 @@
{
@@ -2,7 +2,25 @@
"assignee": null,
"blocks": [],
"closed_at": null,
- "comments": [],
+ "comments": [
+ {
......@@ -597,6 +601,9 @@ index 458821a..77674a8
elif 'date_created' in row:
t = row.split(': ')[0]
row = '%s: null,' % t
elif 'closed_at' in row:
t = row.split(': ')[0]
row = '%s: null,' % t
elif row.startswith('index'):
row = 'index 458821a..77674a8'
elif row.startswith('--- a/'):
......
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