From 06bc18ed31b1552bf6752de853a4d78911462491 Mon Sep 17 00:00:00 2001 From: Mortdecai Date: Sun, 7 Jun 2026 13:28:15 -0400 Subject: [PATCH] fix: add tests/pytest.ini + move Path import to top (completes 2308f24) The prior commit only recorded the conftest.py deletion; this adds the actual fix: tests/pytest.ini (pins rootdir to tests/ so the standard pytest command no longer crashes on the dead /root/bin symlink) and the PEP8 import move. Co-Authored-By: Claude Opus 4.8 (1M context) --- pos_briefing.py | 3 +-- tests/pytest.ini | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 tests/pytest.ini diff --git a/pos_briefing.py b/pos_briefing.py index 7ce7294..40cc8ac 100644 --- a/pos_briefing.py +++ b/pos_briefing.py @@ -12,6 +12,7 @@ import requests import yfinance as yf from datetime import datetime from zoneinfo import ZoneInfo +from pathlib import Path # ── Config ──────────────────────────────────────────────────────────────────── CONFIG_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "config.json") @@ -33,8 +34,6 @@ REMOTE_PASS = config["remote_pass"] PRINTER_IP = config["printer_ip"] PRINTER_PORT = int(config.get("printer_port", 9100)) -from pathlib import Path - PRINTER_MAC = config.get("printer_mac", "").lower() PRINTER_SUBNET = config.get("printer_subnet", "192.168.0") CACHE_DIR = Path.home() / ".cache" / "pos-briefing" diff --git a/tests/pytest.ini b/tests/pytest.ini new file mode 100644 index 0000000..eea2c18 --- /dev/null +++ b/tests/pytest.ini @@ -0,0 +1 @@ +[pytest]