Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
maxi297 committed May 24, 2024
1 parent ed5ba45 commit da0cc1b
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import pytest
import requests

from source_shopify.shopify_graphql.bulk.exceptions import ShopifyBulkExceptions
from source_shopify.shopify_graphql.bulk.status import ShopifyBulkJobStatus
from source_shopify.streams.streams import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.

import json

from airbyte_cdk.test.mock_http import HttpMocker, HttpRequest, HttpResponse
from airbyte_cdk.test.mock_http.request import ANY_QUERY_PARAMS
from airbyte_cdk.test.mock_http.response_builder import find_template


_ALL_SCOPES = [
"read_all_cart_transforms",
"read_all_checkout_completion_target_customizations",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.

import json
from datetime import datetime
from random import randint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.

from datetime import datetime, timedelta
from typing import Any, Dict
from unittest import TestCase

from source_shopify import SourceShopify
from airbyte_cdk.test.catalog_builder import CatalogBuilder
from airbyte_cdk.test.entrypoint_wrapper import read
from airbyte_cdk.test.mock_http import HttpMocker, HttpResponse
from freezegun import freeze_time
from airbyte_protocol.models import SyncMode, FailureType
from typing import Any, Dict
from airbyte_cdk.test.catalog_builder import CatalogBuilder
from airbyte_cdk.test.mock_http.request import HttpRequest
from airbyte_protocol.models import FailureType, SyncMode
from freezegun import freeze_time
from source_shopify import SourceShopify
from unit_tests.integration.api.authentication import grant_all_scopes, set_up_shop
from unit_tests.integration.api.bulk import JobCreationResponseBuilder, JobStatusResponseBuilder, MetafieldOrdersJobResponseBuilder, create_job_creation_request, create_job_status_request
from unit_tests.integration.api.bulk import (
JobCreationResponseBuilder,
JobStatusResponseBuilder,
MetafieldOrdersJobResponseBuilder,
create_job_creation_request,
create_job_status_request,
)

_BULK_OPERATION_ID = "gid://shopify/BulkOperation/4472588009661"
_BULK_STREAM = "metafield_orders"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,60 +1,58 @@
{
"shop": {
"id": 58033176765,
"name": "airbyte integration test",
"email": "[email protected]",
"domain": "a-shop.myshopify.com",
"province": "California",
"country": "US",
"address1": "350 29th Avenue",
"zip": "94121",
"city": "San Francisco",
"source": null,
"phone": "8023494963",
"latitude": 37.7827286,
"longitude": -122.4889911,
"primary_locale": "en",
"address2": "",
"created_at": "2021-06-22T18:00:23-07:00",
"updated_at": "2024-05-05T01:11:05-08:00",
"country_code": "US",
"country_name": "United States",
"currency": "USD",
"customer_email": "[email protected]",
"timezone": "(GMT-08:00) America\/Los_Angeles",
"iana_timezone": "America\/Los_Angeles",
"shop_owner": "Airbyte Airbyte",
"money_format": "${{amount}}",
"money_with_currency_format": "${{amount}} USD",
"weight_unit": "kg",
"province_code": "CA",
"taxes_included": true,
"auto_configure_tax_inclusivity": null,
"tax_shipping": null,
"county_taxes": true,
"plan_display_name": "Developer Preview",
"plan_name": "partner_test",
"has_discounts": true,
"has_gift_cards": false,
"myshopify_domain": "a-shop.myshopify.com",
"google_apps_domain": null,
"google_apps_login_enabled": null,
"money_in_emails_format": "${{amount}}",
"money_with_currency_in_emails_format": "${{amount}} USD",
"eligible_for_payments": true,
"requires_extra_payments_agreement": false,
"password_enabled": true,
"has_storefront": true,
"finances": true,
"primary_location_id": 63590301885,
"checkout_api_supported": true,
"multi_location_enabled": true,
"setup_required": false,
"pre_launch_enabled": false,
"enabled_presentment_currencies": [
"USD"
],
"transactional_sms_disabled": false,
"marketing_sms_consent_enabled_at_checkout": false
}
"shop": {
"id": 58033176765,
"name": "airbyte integration test",
"email": "[email protected]",
"domain": "a-shop.myshopify.com",
"province": "California",
"country": "US",
"address1": "350 29th Avenue",
"zip": "94121",
"city": "San Francisco",
"source": null,
"phone": "8023494963",
"latitude": 37.7827286,
"longitude": -122.4889911,
"primary_locale": "en",
"address2": "",
"created_at": "2021-06-22T18:00:23-07:00",
"updated_at": "2024-05-05T01:11:05-08:00",
"country_code": "US",
"country_name": "United States",
"currency": "USD",
"customer_email": "[email protected]",
"timezone": "(GMT-08:00) America/Los_Angeles",
"iana_timezone": "America/Los_Angeles",
"shop_owner": "Airbyte Airbyte",
"money_format": "${{amount}}",
"money_with_currency_format": "${{amount}} USD",
"weight_unit": "kg",
"province_code": "CA",
"taxes_included": true,
"auto_configure_tax_inclusivity": null,
"tax_shipping": null,
"county_taxes": true,
"plan_display_name": "Developer Preview",
"plan_name": "partner_test",
"has_discounts": true,
"has_gift_cards": false,
"myshopify_domain": "a-shop.myshopify.com",
"google_apps_domain": null,
"google_apps_login_enabled": null,
"money_in_emails_format": "${{amount}}",
"money_with_currency_in_emails_format": "${{amount}} USD",
"eligible_for_payments": true,
"requires_extra_payments_agreement": false,
"password_enabled": true,
"has_storefront": true,
"finances": true,
"primary_location_id": 63590301885,
"checkout_api_supported": true,
"multi_location_enabled": true,
"setup_required": false,
"pre_launch_enabled": false,
"enabled_presentment_currencies": ["USD"],
"transactional_sms_disabled": false,
"marketing_sms_consent_enabled_at_checkout": false
}
}

0 comments on commit da0cc1b

Please sign in to comment.