Squashed from chore/license-relicense. Full message preserved in the original branch commitbb77eb5. See ADR-0002 for the decision rationale. Refs: ADR-0002, commitbb77eb5
25 lines
733 B
Python
25 lines
733 B
Python
# SPDX-License-Identifier: MIT
|
|
# Copyright (c) 2026 Rug Munch Media LLC
|
|
#
|
|
# Part of Pry — https://git.rugmunch.io/RugMunchMedia/pryscraper
|
|
# Licensed under MIT. See LICENSE.
|
|
"""Tests for commerce platform sync."""
|
|
|
|
from commerce_sync import sync_to_shopify, sync_to_woocommerce
|
|
|
|
|
|
def test_sync_woocommerce_no_creds() -> None:
|
|
import asyncio
|
|
|
|
result = asyncio.run(sync_to_woocommerce([{"name": "Test"}], "", "", ""))
|
|
assert result["success"] is False
|
|
assert result["total"] == 1
|
|
assert result["synced"] == 0
|
|
|
|
|
|
def test_sync_shopify_no_creds() -> None:
|
|
import asyncio
|
|
|
|
result = asyncio.run(sync_to_shopify([{"name": "Test"}], "", ""))
|
|
assert result["success"] is False
|
|
assert result["total"] == 1
|