Use json fixtures instead of yaml

This commit is contained in:
Gabriel Augendre 2022-04-26 22:56:25 +02:00
parent cb572621f2
commit aa8e1fa5b5
4 changed files with 72 additions and 47 deletions

View 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"
}
}
]

View file

@ -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

View 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
}
}
]

View file

@ -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