This repository has been archived on 2026-02-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
cvc_checker/checker/tests/conftest.py
2025-12-31 17:33:09 +08:00

28 lines
482 B
Python

"""测试配置文件"""
import pytest
import requests
from checker import Card, StripeChecker
@pytest.fixture
def sample_card():
"""示例卡片fixture"""
return Card(
number="4111111111111111",
month="12",
year="2025",
cvv="123"
)
@pytest.fixture
def session():
"""HTTP会话fixture"""
return requests.Session()
@pytest.fixture
def checker():
"""检测器fixture"""
return StripeChecker(timeout=15, max_retries=3)