forked from cartsnitch/cartsnitch
Squashed 'receiptwitness/' content from commit e8d374a
git-subtree-dir: receiptwitness git-subtree-split: e8d374a89ed8978f429598e02d31b1c5963efe22
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
"""Shared test fixtures."""
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
FIXTURES_DIR = Path(__file__).parent / "fixtures"
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def meijer_receipt_data() -> dict:
|
||||
"""Load the sample Meijer receipt fixture."""
|
||||
with open(FIXTURES_DIR / "meijer_receipt.json") as f:
|
||||
return json.load(f)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def kroger_receipt_data() -> dict:
|
||||
"""Load the sample Kroger receipt fixture."""
|
||||
with open(FIXTURES_DIR / "kroger_receipt.json") as f:
|
||||
return json.load(f)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def target_receipt_data() -> dict:
|
||||
"""Load the sample Target receipt fixture."""
|
||||
with open(FIXTURES_DIR / "target_receipt.json") as f:
|
||||
return json.load(f)
|
||||
Reference in New Issue
Block a user