From 271fa48c81878129de58e9673a4efbf91773e060 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 26 Sep 2021 13:16:03 +0300 Subject: [PATCH] feat(tests): add shop fixture --- .../fixtures/entries/shop/catalog/bikes/entry.yaml | 7 +++++++ .../entries/shop/catalog/bikes/gt/entry.yaml | 7 +++++++ .../entries/shop/catalog/bikes/gt/fury/entry.yaml | 14 ++++++++++++++ .../shop/catalog/bikes/gt/sensor/entry.yaml | 14 ++++++++++++++ .../entries/shop/catalog/bikes/norco/entry.yaml | 7 +++++++ .../shop/catalog/bikes/norco/rage/entry.yaml | 14 ++++++++++++++ tests/fixtures/entries/shop/catalog/entry.yaml | 7 +++++++ .../shop/catalog/snowboards/burton/entry.yaml | 7 +++++++ .../shop/catalog/snowboards/burton/hero/entry.yaml | 14 ++++++++++++++ .../entries/shop/catalog/snowboards/entry.yaml | 7 +++++++ .../fixtures/entries/shop/discounts/30/entry.yaml | 3 +++ .../fixtures/entries/shop/discounts/50/entry.yaml | 3 +++ tests/fixtures/entries/shop/discounts/entry.yaml | 7 +++++++ tests/fixtures/entries/shop/entry.yaml | 7 +++++++ 14 files changed, 118 insertions(+) create mode 100644 tests/fixtures/entries/shop/catalog/bikes/entry.yaml create mode 100644 tests/fixtures/entries/shop/catalog/bikes/gt/entry.yaml create mode 100644 tests/fixtures/entries/shop/catalog/bikes/gt/fury/entry.yaml create mode 100644 tests/fixtures/entries/shop/catalog/bikes/gt/sensor/entry.yaml create mode 100644 tests/fixtures/entries/shop/catalog/bikes/norco/entry.yaml create mode 100644 tests/fixtures/entries/shop/catalog/bikes/norco/rage/entry.yaml create mode 100644 tests/fixtures/entries/shop/catalog/entry.yaml create mode 100644 tests/fixtures/entries/shop/catalog/snowboards/burton/entry.yaml create mode 100644 tests/fixtures/entries/shop/catalog/snowboards/burton/hero/entry.yaml create mode 100644 tests/fixtures/entries/shop/catalog/snowboards/entry.yaml create mode 100644 tests/fixtures/entries/shop/discounts/30/entry.yaml create mode 100644 tests/fixtures/entries/shop/discounts/50/entry.yaml create mode 100644 tests/fixtures/entries/shop/discounts/entry.yaml create mode 100644 tests/fixtures/entries/shop/entry.yaml diff --git a/tests/fixtures/entries/shop/catalog/bikes/entry.yaml b/tests/fixtures/entries/shop/catalog/bikes/entry.yaml new file mode 100644 index 00000000..2bb35845 --- /dev/null +++ b/tests/fixtures/entries/shop/catalog/bikes/entry.yaml @@ -0,0 +1,7 @@ +title: Bikes +entries: + fetch: + items: + id: shop/catalog/bikes + options: + collection: true \ No newline at end of file diff --git a/tests/fixtures/entries/shop/catalog/bikes/gt/entry.yaml b/tests/fixtures/entries/shop/catalog/bikes/gt/entry.yaml new file mode 100644 index 00000000..b352bc89 --- /dev/null +++ b/tests/fixtures/entries/shop/catalog/bikes/gt/entry.yaml @@ -0,0 +1,7 @@ +title: GT +entries: + fetch: + items: + id: shop/catalog/bikes/gt + options: + collection: true \ No newline at end of file diff --git a/tests/fixtures/entries/shop/catalog/bikes/gt/fury/entry.yaml b/tests/fixtures/entries/shop/catalog/bikes/gt/fury/entry.yaml new file mode 100644 index 00000000..6a565847 --- /dev/null +++ b/tests/fixtures/entries/shop/catalog/bikes/gt/fury/entry.yaml @@ -0,0 +1,14 @@ +title: GT +price: 2000 +entries: + fetch: + discounts_available: + id: shop/discounts + options: + collection: true + filter: + where: + - + key: category + operator: eq + value: bikes \ No newline at end of file diff --git a/tests/fixtures/entries/shop/catalog/bikes/gt/sensor/entry.yaml b/tests/fixtures/entries/shop/catalog/bikes/gt/sensor/entry.yaml new file mode 100644 index 00000000..68e38b60 --- /dev/null +++ b/tests/fixtures/entries/shop/catalog/bikes/gt/sensor/entry.yaml @@ -0,0 +1,14 @@ +title: Sensor +price: 1700 +entries: + fetch: + discounts_available: + id: shop/discounts + options: + collection: true + filter: + where: + - + key: category + operator: eq + value: bikes \ No newline at end of file diff --git a/tests/fixtures/entries/shop/catalog/bikes/norco/entry.yaml b/tests/fixtures/entries/shop/catalog/bikes/norco/entry.yaml new file mode 100644 index 00000000..cb32c107 --- /dev/null +++ b/tests/fixtures/entries/shop/catalog/bikes/norco/entry.yaml @@ -0,0 +1,7 @@ +title: Norco +entries: + fetch: + items: + id: shop/catalog/bikes/norco + options: + collection: true \ No newline at end of file diff --git a/tests/fixtures/entries/shop/catalog/bikes/norco/rage/entry.yaml b/tests/fixtures/entries/shop/catalog/bikes/norco/rage/entry.yaml new file mode 100644 index 00000000..70b46f8c --- /dev/null +++ b/tests/fixtures/entries/shop/catalog/bikes/norco/rage/entry.yaml @@ -0,0 +1,14 @@ +title: Rage +price: 2100 +entries: + fetch: + discounts_available: + id: shop/discounts + options: + collection: true + filter: + where: + - + key: category + operator: eq + value: bikes \ No newline at end of file diff --git a/tests/fixtures/entries/shop/catalog/entry.yaml b/tests/fixtures/entries/shop/catalog/entry.yaml new file mode 100644 index 00000000..4a5ba18e --- /dev/null +++ b/tests/fixtures/entries/shop/catalog/entry.yaml @@ -0,0 +1,7 @@ +title: Catalog +entries: + fetch: + bikes: + id: shop/catalog/bikes + snowboards: + id: shop/catalog/snowboards \ No newline at end of file diff --git a/tests/fixtures/entries/shop/catalog/snowboards/burton/entry.yaml b/tests/fixtures/entries/shop/catalog/snowboards/burton/entry.yaml new file mode 100644 index 00000000..4f0f32a1 --- /dev/null +++ b/tests/fixtures/entries/shop/catalog/snowboards/burton/entry.yaml @@ -0,0 +1,7 @@ +title: Burton +entries: + fetch: + items: + id: shop/catalog/snowboards/burton + options: + collection: true \ No newline at end of file diff --git a/tests/fixtures/entries/shop/catalog/snowboards/burton/hero/entry.yaml b/tests/fixtures/entries/shop/catalog/snowboards/burton/hero/entry.yaml new file mode 100644 index 00000000..7710cec6 --- /dev/null +++ b/tests/fixtures/entries/shop/catalog/snowboards/burton/hero/entry.yaml @@ -0,0 +1,14 @@ +title: Burton Family Tree Hometown Hero Camber Splitboard +price: 849.95 +entries: + fetch: + discounts_available: + id: shop/discounts + options: + collection: true + filter: + where: + - + key: category + operator: eq + value: snowboards \ No newline at end of file diff --git a/tests/fixtures/entries/shop/catalog/snowboards/entry.yaml b/tests/fixtures/entries/shop/catalog/snowboards/entry.yaml new file mode 100644 index 00000000..e3100130 --- /dev/null +++ b/tests/fixtures/entries/shop/catalog/snowboards/entry.yaml @@ -0,0 +1,7 @@ +title: Snowboards +entries: + fetch: + items: + id: shop/catalog/snowboards + options: + collection: true \ No newline at end of file diff --git a/tests/fixtures/entries/shop/discounts/30/entry.yaml b/tests/fixtures/entries/shop/discounts/30/entry.yaml new file mode 100644 index 00000000..be2b99e1 --- /dev/null +++ b/tests/fixtures/entries/shop/discounts/30/entry.yaml @@ -0,0 +1,3 @@ +title: Discount 30% +value: 30 +category: bikes \ No newline at end of file diff --git a/tests/fixtures/entries/shop/discounts/50/entry.yaml b/tests/fixtures/entries/shop/discounts/50/entry.yaml new file mode 100644 index 00000000..282ddd66 --- /dev/null +++ b/tests/fixtures/entries/shop/discounts/50/entry.yaml @@ -0,0 +1,3 @@ +title: Discount 50% +value: 50 +category: snowboards \ No newline at end of file diff --git a/tests/fixtures/entries/shop/discounts/entry.yaml b/tests/fixtures/entries/shop/discounts/entry.yaml new file mode 100644 index 00000000..51e3e5c5 --- /dev/null +++ b/tests/fixtures/entries/shop/discounts/entry.yaml @@ -0,0 +1,7 @@ +title: Discounts +entries: + fetch: + items: + id: shop/discounts + options: + collection: true \ No newline at end of file diff --git a/tests/fixtures/entries/shop/entry.yaml b/tests/fixtures/entries/shop/entry.yaml new file mode 100644 index 00000000..78207f73 --- /dev/null +++ b/tests/fixtures/entries/shop/entry.yaml @@ -0,0 +1,7 @@ +title: Shop +entries: + fetch: + catalog: + id: shop/catalog + discounts: + id: shop/discounts \ No newline at end of file