\r\n {%- for block in section.blocks -%}\r\n {% render block %}\r\n {%- endfor -%}\r\n<\/div>\r\n\r\n{% schema %}\r\n{\r\n \"name\": \"t:sections.apps.name\",\r\n \"tag\": \"section\",\r\n \"class\": \"section\",\r\n \"settings\": [\r\n {\r\n \"type\": \"checkbox\",\r\n \"id\": \"include_margins\",\r\n \"default\": true,\r\n \"label\": \"t:sections.apps.settings.include_margins.label\"\r\n }\r\n ],\r\n \"blocks\": [\r\n {\r\n \"type\": \"@app\"\r\n }\r\n ],\r\n \"presets\": [\r\n {\r\n \"name\": \"t:sections.apps.presets.name\"\r\n }\r\n ]\r\n}\r\n{% endschema %}",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/x-liquid",
- "size": 1068,
- "checksum": null,
- "theme_id": 828155753
- }
- }
diff --git a/tests/fixtures/get_theme_asset_template_json.json b/tests/fixtures/get_theme_asset_template_json.json
deleted file mode 100644
index 025710ed..00000000
--- a/tests/fixtures/get_theme_asset_template_json.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "asset": {
- "key": "templates/shop.json",
- "public_url": null,
- "value": "{\"name\":\"Shop template\",\"wrapper\":\"div#div_id.div_class[attribute-one=value]\",\"sections\":{\"main\":{\"type\":\"product\"}},\"order\":[\"main\"]}",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/json",
- "size": 1068,
- "checksum": null,
- "theme_id": 828155753
- }
-}
diff --git a/tests/fixtures/get_theme_assets.json b/tests/fixtures/get_theme_assets.json
deleted file mode 100644
index 067d0a9a..00000000
--- a/tests/fixtures/get_theme_assets.json
+++ /dev/null
@@ -1,284 +0,0 @@
-{
- "assets": [
- {
- "key": "layout/theme.liquid",
- "public_url": null,
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/x-liquid",
- "size": 3252,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "assets/sidebar-devider.gif",
- "public_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/t/1/assets/sidebar-devider.gif?v=1278963110",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "image/gif",
- "size": 1016,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "assets/bg-body-pink.gif",
- "public_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/t/1/assets/bg-body-pink.gif?v=1278963110",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "image/gif",
- "size": 1562,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "assets/bg-content.gif",
- "public_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/t/1/assets/bg-content.gif?v=1278963110",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "image/gif",
- "size": 134,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "sections/header_section.liquid",
- "public_url": null,
- "created_at": "2017-04-28T10:30:00-04:00",
- "updated_at": "2017-04-28T10:30:00-04:00",
- "content_type": "application/x-liquid",
- "size": 998,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "assets/shop.css.liquid",
- "public_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/t/1/assets/shop.css.liquid?v=1278963110",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/x-liquid",
- "size": 14675,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "assets/shop.js",
- "public_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/t/1/assets/shop.js?v=1278963110",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/javascript",
- "size": 348,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "assets/bg-main.gif",
- "public_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/t/1/assets/bg-main.gif?v=1278963110",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "image/gif",
- "size": 297,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "sections/content_section.liquid",
- "public_url": null,
- "created_at": "2016-02-11T14:31:50-05:00",
- "updated_at": "2016-02-11T14:31:50-05:00",
- "content_type": "application/x-liquid",
- "size": 997,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "templates/page.liquid",
- "public_url": null,
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/x-liquid",
- "size": 147,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "assets/bg-body-green.gif",
- "public_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/t/1/assets/bg-body-green.gif?v=1278963110",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "image/gif",
- "size": 1542,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "assets/shop.css",
- "public_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/t/1/assets/shop.css?v=1278963110",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "text/css",
- "size": 14058,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "config/settings_schema.json",
- "public_url": null,
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/json",
- "size": 4570,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "sections/product.liquid",
- "public_url": null,
- "created_at": "2016-02-14T16:31:41-05:00",
- "updated_at": "2016-02-14T16:31:41-05:00",
- "content_type": "application/x-liquid",
- "size": 2440,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "templates/blog.liquid",
- "public_url": null,
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/x-liquid",
- "size": 786,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "templates/article.liquid",
- "public_url": null,
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/x-liquid",
- "size": 2486,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "templates/product.liquid",
- "public_url": null,
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/x-liquid",
- "size": 2796,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "sections/footer_section.liquid",
- "public_url": null,
- "created_at": "2017-04-28T10:30:00-04:00",
- "updated_at": "2017-04-28T10:30:00-04:00",
- "content_type": "application/x-liquid",
- "size": 999,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "assets/bg-footer.gif",
- "public_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/t/1/assets/bg-footer.gif?v=1278963110",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "image/gif",
- "size": 1434,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "assets/bg-sidebar.gif",
- "public_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/t/1/assets/bg-sidebar.gif?v=1278963110",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "image/gif",
- "size": 124,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "assets/bg-body-orange.gif",
- "public_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/t/1/assets/bg-body-orange.gif?v=1278963110",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "image/gif",
- "size": 1548,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "templates/collection.liquid",
- "public_url": null,
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/x-liquid",
- "size": 946,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "assets/sidebar-menu.jpg",
- "public_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/t/1/assets/sidebar-menu.jpg?v=1278963110",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "image/jpeg",
- "size": 1609,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "templates/cart.liquid",
- "public_url": null,
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/x-liquid",
- "size": 2047,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "config/settings_data.json",
- "public_url": null,
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/json",
- "size": 4570,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "templates/index.liquid",
- "public_url": null,
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/x-liquid",
- "size": 1068,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "templates/shop.json",
- "public_url": null,
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "application/json",
- "size": 1068,
- "checksum": null,
- "theme_id": 828155753
- },
- {
- "key": "assets/bg-body.gif",
- "public_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/t/1/assets/bg-body.gif?v=1278963110",
- "created_at": "2010-07-12T15:31:50-04:00",
- "updated_at": "2010-07-12T15:31:50-04:00",
- "content_type": "image/gif",
- "size": 1571,
- "checksum": null,
- "theme_id": 828155753
- }
- ]
-}
diff --git a/tests/fixtures/get_themes.json b/tests/fixtures/get_themes.json
deleted file mode 100644
index 453c7211..00000000
--- a/tests/fixtures/get_themes.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "themes": [
- {
- "id": 828155753,
- "name": "Comfort",
- "created_at": "2022-07-02T01:51:59-04:00",
- "updated_at": "2022-07-02T01:51:59-04:00",
- "role": "main",
- "theme_store_id": null,
- "previewable": true,
- "processing": false,
- "admin_graphql_api_id": "gid://shopify/Theme/828155753"
- },
- {
- "id": 976877075,
- "name": "Preview of Parallax",
- "created_at": "2022-07-02T01:51:59-04:00",
- "updated_at": "2022-07-02T01:51:59-04:00",
- "role": "demo",
- "theme_store_id": 688,
- "previewable": true,
- "processing": false,
- "admin_graphql_api_id": "gid://shopify/Theme/976877075"
- },
- {
- "id": 752253240,
- "name": "Sandbox",
- "created_at": "2022-07-02T01:51:59-04:00",
- "updated_at": "2022-07-02T01:51:59-04:00",
- "role": "unpublished",
- "theme_store_id": null,
- "previewable": true,
- "processing": false,
- "admin_graphql_api_id": "gid://shopify/Theme/752253240"
- }
- ]
-}
diff --git a/tests/fixtures/main_theme.json b/tests/fixtures/main_theme.json
new file mode 100644
index 00000000..38a258ad
--- /dev/null
+++ b/tests/fixtures/main_theme.json
@@ -0,0 +1,12 @@
+{
+ "data": {
+ "themes": {
+ "nodes": [
+ {
+ "id": "gid:\/\/shopify\/OnlineStoreTheme\/123456789",
+ "name": "Dawn"
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/fixtures/theme_sections.json b/tests/fixtures/theme_sections.json
new file mode 100644
index 00000000..24d4e1f6
--- /dev/null
+++ b/tests/fixtures/theme_sections.json
@@ -0,0 +1,16 @@
+{
+ "data": {
+ "theme": {
+ "files": {
+ "nodes": [
+ {
+ "filename": "sections\/main-product.liquid",
+ "body": {
+ "content": "
\n {{ 'section-main-product.css' | asset_url | stylesheet_tag }}\n {{ 'component-accordion.css' | asset_url | stylesheet_tag }}\n {{ 'component-price.css' | asset_url | stylesheet_tag }}\n {{ 'component-slider.css' | asset_url | stylesheet_tag }}\n {{ 'component-rating.css' | asset_url | stylesheet_tag }}\n {{ 'component-deferred-media.css' | asset_url | stylesheet_tag }}\n\n {% unless product.has_only_default_variant %}\n {{ 'component-product-variant-picker.css' | asset_url | stylesheet_tag }}\n {{ 'component-swatch-input.css' | asset_url | stylesheet_tag }}\n {{ 'component-swatch.css' | asset_url | stylesheet_tag }}\n {% endunless %}\n {%- if product.quantity_price_breaks_configured? -%}\n {{ 'component-volume-pricing.css' | asset_url | stylesheet_tag }}\n {%- endif -%}\n\n {%- style -%}\n .section-{{ section.id }}-padding {\n padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px;\n padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | round: 0 }}px;\n }\n\n @media screen and (min-width: 750px) {\n .section-{{ section.id }}-padding {\n padding-top: {{ section.settings.padding_top }}px;\n padding-bottom: {{ section.settings.padding_bottom }}px;\n }\n }\n {%- endstyle -%}\n\n