Skip to content

Commit

Permalink
feat: add fixture data for refactored models
Browse files Browse the repository at this point in the history
data covers only a few pages: index, agency index, and eligibility index

the data is sourced from existing views.py and the .po language files
  • Loading branch information
thekaveman committed Dec 2, 2021
1 parent e98c652 commit 2617ab6
Show file tree
Hide file tree
Showing 6 changed files with 394 additions and 0 deletions.
194 changes: 194 additions & 0 deletions fixtures/05_i18ntext.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
[
{
"model": "core.i18ntext",
"pk": 1,
"fields": {
"label": "core.icons.bankcard",
"text": "Bank card icon with contactless symbol"
}
},
{
"model": "core.i18ntext",
"pk": 2,
"fields": {
"label": "core.icons.bankcardcheck",
"text": "Bank card icon with contactless symbol and checkmark"
}
},
{
"model": "core.i18ntext",
"pk": 3,
"fields": {
"label": "core.icons.bankcardquestion",
"text": "Bank card icon with contactless symbol and question mark"
}
},
{
"model": "core.i18ntext",
"pk": 4,
"fields": {
"label": "core.icons.contactless",
"text": "The contactless symbol"
}
},
{
"model": "core.i18ntext",
"pk": 5,
"fields": {
"label": "core.icons.idcardcheck",
"text": "Identification card icon with checkmark"
}
},
{
"model": "core.i18ntext",
"pk": 6,
"fields": {
"label": "core.icons.idcardquestion",
"text": "Identification card icon with question mark"
}
},
{
"model": "core.i18ntext",
"pk": 7,
"fields": {
"label": "core.icons.sadbus",
"text": "Bus icon with flat tire"
}
},
{
"model": "core.i18ntext",
"pk": 8,
"fields": {
"label": "core.images.index",
"text": "Rider tapping a debit card to pay for their trip"
}
},
{
"model": "core.i18ntext",
"pk": 9,
"fields": {
"label": "core.pages.index.title",
"text": "Transit Benefits"
}
},
{
"model": "core.i18ntext",
"pk": 10,
"fields": {
"label": "core.pages.index.content_title",
"text": "The new way to pay for transit makes it easier to get your discount every time you ride"
}
},
{
"model": "core.i18ntext",
"pk": 11,
"fields": {
"label": "core.pages.index.p1",
"text": "With new contactless payment options, you can tap your bank-issued credit or debit card when you board, and your discount will automatically apply."
}
},
{
"model": "core.i18ntext",
"pk": 12,
"fields": {
"label": "core.pages.index.p2",
"text": "We don’t save any of your information, and you don’t need to create an account!"
}
},
{
"model": "core.i18ntext",
"pk": 13,
"fields": {
"label": "core.pages.index.p3",
"text": "Verify your discount, and connect your bank card today."
}
},
{
"model": "core.i18ntext",
"pk": 14,
"fields": {
"label": "core.pages.index.chooseprovider",
"text": "Choose your transit provider"
}
},
{
"model": "core.i18ntext",
"pk": 15,
"fields": {
"label": "core.pages.index.nav:mst",
"text": "MST (local)"
}
},
{
"model": "core.i18ntext",
"pk": 16,
"fields": {
"label": "core.pages.index.nav:sacrt",
"text": "SacRT (local)"
}
},
{
"model": "core.i18ntext",
"pk": 17,
"fields": {
"label": "core.pages.index.nav:continue",
"text": "Let’s do it!"
}
},
{
"model": "core.i18ntext",
"pk": 18,
"fields": {
"label": "eligibility.pages.index.title",
"text": "Getting started"
}
},
{
"model": "core.i18ntext",
"pk": 19,
"fields": {
"label": "eligibility.pages.index.content_title",
"text": "Great, you’ll need two things before we get started..."
}
},
{
"model": "core.i18ntext",
"pk": 20,
"fields": {
"label": "eligibility.pages.index.item1.heading",
"text": "Your California ID"
}
},
{
"model": "core.i18ntext",
"pk": 21,
"fields": {
"label": "eligibility.pages.index.item1.details",
"text": "Driver’s license or ID card"
}
},
{
"model": "core.i18ntext",
"pk": 22,
"fields": {
"label": "eligibility.pages.index.item2.heading",
"text": "Your bank card"
}
},
{
"model": "core.i18ntext",
"pk": 23,
"fields": {
"label": "eligibility.pages.index.item2.details",
"text": "A debit or credit card"
}
},
{
"model": "core.i18ntext",
"pk": 24,
"fields": {
"label": "eligibility.pages.index.p1",
"text": "This program is currently open to those who are 65 or older. Not over 65? Get in touch with your transit provider to learn about other available discount programs."
}
}
]
58 changes: 58 additions & 0 deletions fixtures/06_icon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[
{
"model": "core.icon",
"pk": 1,
"fields": {
"file": "bankcard.svg",
"alt": 3
}
},
{
"model": "core.icon",
"pk": 2,
"fields": {
"file": "bankcardcheck.svg",
"alt": 3
}
},
{
"model": "core.icon",
"pk": 3,
"fields": {
"file": "bankcardquestion.svg",
"alt": 3
}
},
{
"model": "core.icon",
"pk": 4,
"fields": {
"file": "contactless.svg",
"alt": 3
}
},
{
"model": "core.icon",
"pk": 5,
"fields": {
"file": "idcardcheck.svg",
"alt": 3
}
},
{
"model": "core.icon",
"pk": 6,
"fields": {
"file": "idcardquestion.svg",
"alt": 3
}
},
{
"model": "core.icon",
"pk": 7,
"fields": {
"file": "sadbus.svg",
"alt": 3
}
}
]
10 changes: 10 additions & 0 deletions fixtures/07_image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"model": "core.image",
"pk": 1,
"fields": {
"file": "ridertappingbankcard.png",
"alt": 8
}
}
]
20 changes: 20 additions & 0 deletions fixtures/08_mediaitem.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"model": "core.mediaitem",
"pk": 1,
"fields": {
"icon": 5,
"heading": 20,
"details": 21
}
},
{
"model": "core.mediaitem",
"pk": 2,
"fields": {
"icon": 2,
"heading": 22,
"details": 23
}
}
]
26 changes: 26 additions & 0 deletions fixtures/09_pagenavigation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"model": "core.pagenavigation",
"pk": 1,
"fields": {
"text": 15,
"target": 2
}
},
{
"model": "core.pagenavigation",
"pk": 2,
"fields": {
"text": 16,
"target": 3
}
},
{
"model": "core.pagenavigation",
"pk": 3,
"fields": {
"text": 17,
"target": 4
}
}
]
86 changes: 86 additions & 0 deletions fixtures/10_page.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
[
{
"model": "core.page",
"pk": 1,
"fields": {
"label": "core.pages.index",
"title": 9,
"image": 1,
"icon": null,
"content_title": 10,
"media": [],
"paragraphs": [
11,
12,
13
],
"navigation": [
1,
2
],
"classes": ["home"]
}
},
{
"model": "core.page",
"pk": 2,
"fields": {
"label": "core.pages.agency_index:mst",
"title": 9,
"image": 1,
"icon": null,
"content_title": 10,
"media": [],
"paragraphs": [
11,
12,
13
],
"navigation": [
3
],
"classes": ["home"]
}
},
{
"model": "core.page",
"pk": 3,
"fields": {
"label": "core.pages.agency_index:sacrt",
"title": 9,
"image": 1,
"icon": null,
"content_title": 10,
"media": [],
"paragraphs": [
11,
12,
13
],
"navigation": [
3
],
"classes": ["home"]
}
},
{
"model": "core.page",
"pk": 4,
"fields": {
"label": "eligibility.pages.index",
"title": 18,
"image": 1,
"icon": null,
"content_title": 19,
"media": [
1,
2
],
"paragraphs": [
24
],
"navigation": null,
"classes": null
}
}
]

0 comments on commit 2617ab6

Please sign in to comment.