pryscraper/tests/test_commerce_sync.py
cryptorugmunch 8d25702eca chore(license): re-license to dual MIT (core) + BSL 1.1 (stealth)
Squashed from chore/license-relicense. Full message preserved in the
original branch commit bb77eb5. See ADR-0002 for the decision rationale.

Refs: ADR-0002, commit bb77eb5
2026-07-02 19:59:18 +02:00

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