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) <noreply@anthropic.com>
This commit is contained in:
+1
-2
@@ -12,6 +12,7 @@ import requests
|
|||||||
import yfinance as yf
|
import yfinance as yf
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from zoneinfo import ZoneInfo
|
from zoneinfo import ZoneInfo
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
# ── Config ────────────────────────────────────────────────────────────────────
|
# ── Config ────────────────────────────────────────────────────────────────────
|
||||||
CONFIG_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "config.json")
|
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_IP = config["printer_ip"]
|
||||||
PRINTER_PORT = int(config.get("printer_port", 9100))
|
PRINTER_PORT = int(config.get("printer_port", 9100))
|
||||||
|
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
PRINTER_MAC = config.get("printer_mac", "").lower()
|
PRINTER_MAC = config.get("printer_mac", "").lower()
|
||||||
PRINTER_SUBNET = config.get("printer_subnet", "192.168.0")
|
PRINTER_SUBNET = config.get("printer_subnet", "192.168.0")
|
||||||
CACHE_DIR = Path.home() / ".cache" / "pos-briefing"
|
CACHE_DIR = Path.home() / ".cache" / "pos-briefing"
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
[pytest]
|
||||||
Reference in New Issue
Block a user