Skip to content

Commit aa448d6

Browse files
committed
Add unique created dates to bill fixtures
1 parent d7cfec9 commit aa448d6

1 file changed

Lines changed: 82 additions & 86 deletions

File tree

democrasite/webiscite/fixtures/democrasite.json

Lines changed: 82 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"modified": "2024-02-25T17:26:54.012Z",
4545
"status": "open",
4646
"draft": false,
47-
4847
"title": "The Initial Act",
4948
"additions": 0,
5049
"deletions": 0,
@@ -61,7 +60,6 @@
6160
"modified": "2024-02-25T17:26:54.012Z",
6261
"status": "open",
6362
"draft": false,
64-
6563
"title": "The Test Act",
6664
"additions": 1000,
6765
"deletions": 1000,
@@ -78,7 +76,6 @@
7876
"modified": "2024-02-25T17:26:54.012Z",
7977
"status": "open",
8078
"draft": false,
81-
8279
"title": "The Finished Act",
8380
"additions": 69,
8481
"deletions": 420,
@@ -87,6 +84,22 @@
8784
"sha": "12345"
8885
}
8986
},
87+
{
88+
"model": "webiscite.pullrequest",
89+
"pk": -4,
90+
"fields": {
91+
"created": "2026-02-16T12:00:00.000Z",
92+
"modified": "2026-02-16T12:00:00.000Z",
93+
"status": "open",
94+
"draft": true,
95+
"title": "The Draft Act",
96+
"additions": 42,
97+
"deletions": 7,
98+
"diff_url": "https://github.com/mfosterw/cookiestocracy/pull/64.diff",
99+
"author_name": "matthew",
100+
"sha": "abc123"
101+
}
102+
},
90103
{
91104
"model": "webiscite.historicalpullrequest",
92105
"pk": 1,
@@ -150,6 +163,27 @@
150163
"history_user": null
151164
}
152165
},
166+
{
167+
"model": "webiscite.historicalpullrequest",
168+
"pk": 4,
169+
"fields": {
170+
"created": "2026-02-16T12:00:00.000Z",
171+
"modified": "2026-02-16T12:00:00.000Z",
172+
"number": -4,
173+
"title": "The Draft Act",
174+
"additions": 42,
175+
"deletions": 7,
176+
"diff_url": "https://github.com/mfosterw/cookiestocracy/pull/64.diff",
177+
"author_name": "matthew",
178+
"status": "open",
179+
"draft": true,
180+
"sha": "abc123",
181+
"history_date": "2026-02-16T12:00:00.000Z",
182+
"history_change_reason": "",
183+
"history_type": "+",
184+
"history_user": null
185+
}
186+
},
153187
{
154188
"model": "webiscite.bill",
155189
"pk": 1,
@@ -169,8 +203,8 @@
169203
"model": "webiscite.bill",
170204
"pk": 2,
171205
"fields": {
172-
"created": "2024-02-25T17:26:53.913Z",
173-
"modified": "2024-02-25T17:26:53.950Z",
206+
"created": "2024-02-25T17:30:53.913Z",
207+
"modified": "2024-02-25T17:30:53.950Z",
174208
"name": "The Failed Act",
175209
"description": "This bill failed because not enough people voted on it.",
176210
"author": 1,
@@ -184,8 +218,8 @@
184218
"model": "webiscite.bill",
185219
"pk": 3,
186220
"fields": {
187-
"created": "2024-02-25T17:26:53.913Z",
188-
"modified": "2024-02-25T17:26:53.950Z",
221+
"created": "2024-02-25T17:40:53.913Z",
222+
"modified": "2024-02-25T17:40:53.950Z",
189223
"name": "The Test Act",
190224
"description": "This is a test. It is the 3rd bill, but the first two are marked as not open, so this should be the oldest bill displayed on the front page.",
191225
"author": 1,
@@ -199,8 +233,8 @@
199233
"model": "webiscite.bill",
200234
"pk": 4,
201235
"fields": {
202-
"created": "2024-02-25T17:26:53.913Z",
203-
"modified": "2024-02-25T17:26:53.950Z",
236+
"created": "2024-02-25T17:55:53.913Z",
237+
"modified": "2024-02-25T17:55:53.950Z",
204238
"name": "The Rejected Act",
205239
"description": "This bill was rejected by the community. Since it was a constitutional amendment, it required a supermajority to pass.",
206240
"author": 1,
@@ -214,8 +248,8 @@
214248
"model": "webiscite.bill",
215249
"pk": 5,
216250
"fields": {
217-
"created": "2024-02-25T17:26:53.913Z",
218-
"modified": "2024-02-25T17:26:53.950Z",
251+
"created": "2024-02-25T18:26:53.913Z",
252+
"modified": "2024-02-25T18:26:53.950Z",
219253
"name": "The Constitutional Act",
220254
"description": "This is a constitutional amendment. That should be noted in a subheader beneath the title.",
221255
"author": 1,
@@ -229,8 +263,8 @@
229263
"model": "webiscite.bill",
230264
"pk": 6,
231265
"fields": {
232-
"created": "2024-02-25T17:26:53.913Z",
233-
"modified": "2024-02-25T17:26:53.950Z",
266+
"created": "2024-02-25T18:36:53.913Z",
267+
"modified": "2024-02-25T18:36:53.950Z",
234268
"name": "The Finished Act",
235269
"description": "This bill was approved and is now part of the live website.",
236270
"author": 1,
@@ -240,6 +274,21 @@
240274
"_submit_task": 6
241275
}
242276
},
277+
{
278+
"model": "webiscite.bill",
279+
"pk": 7,
280+
"fields": {
281+
"created": "2026-02-16T12:00:00.000Z",
282+
"modified": "2026-02-16T12:00:00.000Z",
283+
"name": "The Draft Act",
284+
"description": "This bill is a draft. It was created from a draft pull request and cannot be voted on until the PR is marked ready for review.",
285+
"author": 1,
286+
"pull_request": -4,
287+
"status": "draft",
288+
"constitutional": false,
289+
"_submit_task": 7
290+
}
291+
},
243292
{
244293
"model": "webiscite.historicalbill",
245294
"pk": 1,
@@ -360,6 +409,26 @@
360409
"history_user": null
361410
}
362411
},
412+
{
413+
"model": "webiscite.historicalbill",
414+
"pk": 7,
415+
"fields": {
416+
"id": 7,
417+
"created": "2026-02-16T12:00:00.000Z",
418+
"modified": "2026-02-16T12:00:00.000Z",
419+
"name": "The Draft Act",
420+
"description": "This bill is a draft. It was created from a draft pull request and cannot be voted on until the PR is marked ready for review.",
421+
"status": "draft",
422+
"constitutional": false,
423+
"author": 1,
424+
"pull_request": -4,
425+
"_submit_task": 7,
426+
"history_date": "2026-02-16T12:00:00.000Z",
427+
"history_change_reason": "",
428+
"history_type": "+",
429+
"history_user": null
430+
}
431+
},
363432
{
364433
"model": "django_celery_beat.intervalschedule",
365434
"pk": 1,
@@ -437,79 +506,6 @@
437506
"date_changed": "2024-02-20T12:00:22.856Z"
438507
}
439508
},
440-
{
441-
"model": "webiscite.pullrequest",
442-
"pk": -4,
443-
"fields": {
444-
"created": "2026-02-16T12:00:00.000Z",
445-
"modified": "2026-02-16T12:00:00.000Z",
446-
"status": "open",
447-
"draft": true,
448-
449-
"title": "The Draft Act",
450-
"additions": 42,
451-
"deletions": 7,
452-
"diff_url": "https://github.com/mfosterw/cookiestocracy/pull/64.diff",
453-
"author_name": "matthew",
454-
"sha": "abc123"
455-
}
456-
},
457-
{
458-
"model": "webiscite.historicalpullrequest",
459-
"pk": 4,
460-
"fields": {
461-
"created": "2026-02-16T12:00:00.000Z",
462-
"modified": "2026-02-16T12:00:00.000Z",
463-
"number": -4,
464-
"title": "The Draft Act",
465-
"additions": 42,
466-
"deletions": 7,
467-
"diff_url": "https://github.com/mfosterw/cookiestocracy/pull/64.diff",
468-
"author_name": "matthew",
469-
"status": "open",
470-
"draft": true,
471-
"sha": "abc123",
472-
"history_date": "2026-02-16T12:00:00.000Z",
473-
"history_change_reason": "",
474-
"history_type": "+",
475-
"history_user": null
476-
}
477-
},
478-
{
479-
"model": "webiscite.bill",
480-
"pk": 7,
481-
"fields": {
482-
"created": "2026-02-16T12:00:00.000Z",
483-
"modified": "2026-02-16T12:00:00.000Z",
484-
"name": "The Draft Act",
485-
"description": "This bill is a draft. It was created from a draft pull request and cannot be voted on until the PR is marked ready for review.",
486-
"author": 1,
487-
"pull_request": -4,
488-
"status": "draft",
489-
"constitutional": false,
490-
"_submit_task": 7
491-
}
492-
},
493-
{
494-
"model": "webiscite.historicalbill",
495-
"pk": 7,
496-
"fields": {
497-
"id": 7,
498-
"created": "2026-02-16T12:00:00.000Z",
499-
"modified": "2026-02-16T12:00:00.000Z",
500-
"name": "The Draft Act",
501-
"description": "This bill is a draft. It was created from a draft pull request and cannot be voted on until the PR is marked ready for review.",
502-
"status": "draft",
503-
"constitutional": false,
504-
"author": 1,
505-
"pull_request": -4,
506-
"_submit_task": 7,
507-
"history_date": "2026-02-16T12:00:00.000Z",
508-
"history_change_reason": "",
509-
"history_type": "+",
510-
"history_user": null
511-
}
512-
},
513509
{
514510
"model": "django_celery_beat.periodictask",
515511
"pk": 7,

0 commit comments

Comments
 (0)