mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-22 08:08:04 +01:00
Use json fixtures instead of yaml
This commit is contained in:
parent
cb572621f2
commit
aa8e1fa5b5
4 changed files with 72 additions and 47 deletions
26
src/purchase/fixtures/payment_methods.json
Normal file
26
src/purchase/fixtures/payment_methods.json
Normal file
|
@ -0,0 +1,26 @@
|
|||
[
|
||||
{
|
||||
"model": "purchase.paymentmethod",
|
||||
"fields": {
|
||||
"created_at": "2022-04-26T20:30:22.960Z",
|
||||
"updated_at": "2022-04-26T20:30:22.960Z",
|
||||
"name": "Esp\u00e8ces"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "purchase.paymentmethod",
|
||||
"fields": {
|
||||
"created_at": "2022-04-26T20:30:22.960Z",
|
||||
"updated_at": "2022-04-26T20:30:22.960Z",
|
||||
"name": "CB"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "purchase.paymentmethod",
|
||||
"fields": {
|
||||
"created_at": "2022-04-26T20:30:22.960Z",
|
||||
"updated_at": "2022-04-26T20:30:22.960Z",
|
||||
"name": "Ch\u00e8que"
|
||||
}
|
||||
}
|
||||
]
|
|
@ -1,15 +0,0 @@
|
|||
- model: purchase.paymentmethod
|
||||
fields:
|
||||
created_at: 2022-04-26 20:30:22.960932+00:00
|
||||
updated_at: 2022-04-26 20:30:22.960941+00:00
|
||||
name: Espèces
|
||||
- model: purchase.paymentmethod
|
||||
fields:
|
||||
created_at: 2022-04-26 20:30:22.960948+00:00
|
||||
updated_at: 2022-04-26 20:30:22.960952+00:00
|
||||
name: CB
|
||||
- model: purchase.paymentmethod
|
||||
fields:
|
||||
created_at: 2022-04-26 20:30:22.960958+00:00
|
||||
updated_at: 2022-04-26 20:30:22.960962+00:00
|
||||
name: Chèque
|
46
src/purchase/fixtures/products.json
Normal file
46
src/purchase/fixtures/products.json
Normal file
|
@ -0,0 +1,46 @@
|
|||
[
|
||||
{
|
||||
"model": "purchase.product",
|
||||
"fields": {
|
||||
"created_at": "2022-04-26T20:30:22.959Z",
|
||||
"updated_at": "2022-04-26T20:30:22.959Z",
|
||||
"name": "Clou",
|
||||
"image": "",
|
||||
"unit_price_cents": 134,
|
||||
"display_order": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "purchase.product",
|
||||
"fields": {
|
||||
"created_at": "2022-04-26T20:30:22.959Z",
|
||||
"updated_at": "2022-04-26T20:30:22.959Z",
|
||||
"name": "Villard'Ain",
|
||||
"image": "",
|
||||
"unit_price_cents": 290,
|
||||
"display_order": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "purchase.product",
|
||||
"fields": {
|
||||
"created_at": "2022-04-26T20:30:22.959Z",
|
||||
"updated_at": "2022-04-26T20:30:22.959Z",
|
||||
"name": "Herbier",
|
||||
"image": "",
|
||||
"unit_price_cents": 330,
|
||||
"display_order": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "purchase.product",
|
||||
"fields": {
|
||||
"created_at": "2022-04-26T20:30:22.959Z",
|
||||
"updated_at": "2022-04-26T20:30:22.959Z",
|
||||
"name": "Blanc vache",
|
||||
"image": "",
|
||||
"unit_price_cents": 650,
|
||||
"display_order": 1
|
||||
}
|
||||
}
|
||||
]
|
|
@ -1,32 +0,0 @@
|
|||
- model: purchase.product
|
||||
fields:
|
||||
created_at: 2022-04-26 20:30:22.959558+00:00
|
||||
updated_at: 2022-04-26 20:30:22.959576+00:00
|
||||
name: Clou
|
||||
image: ''
|
||||
unit_price_cents: 134
|
||||
display_order: 1
|
||||
- model: purchase.product
|
||||
fields:
|
||||
created_at: 2022-04-26 20:30:22.959595+00:00
|
||||
updated_at: 2022-04-26 20:30:22.959600+00:00
|
||||
name: Villard'Ain
|
||||
image: ''
|
||||
unit_price_cents: 290
|
||||
display_order: 1
|
||||
- model: purchase.product
|
||||
fields:
|
||||
created_at: 2022-04-26 20:30:22.959610+00:00
|
||||
updated_at: 2022-04-26 20:30:22.959614+00:00
|
||||
name: Herbier
|
||||
image: ''
|
||||
unit_price_cents: 330
|
||||
display_order: 1
|
||||
- model: purchase.product
|
||||
fields:
|
||||
created_at: 2022-04-26 20:30:22.959624+00:00
|
||||
updated_at: 2022-04-26 20:30:22.959628+00:00
|
||||
name: Blanc vache
|
||||
image: ''
|
||||
unit_price_cents: 650
|
||||
display_order: 1
|
Loading…
Reference in a new issue