Randomize test order

This commit is contained in:
Joakim Hellsén 2026-03-07 06:43:32 +01:00
commit dcd86eff69
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
6 changed files with 114 additions and 4 deletions

View file

@ -1,5 +1,6 @@
from __future__ import annotations
import os
import typing
from functools import lru_cache
from pathlib import Path
@ -12,7 +13,12 @@ from reader import make_reader
if typing.TYPE_CHECKING:
from reader.types import JSONType
data_dir: str = user_data_dir(appname="discord_rss_bot", appauthor="TheLovinator", roaming=True, ensure_exists=True)
data_dir: str = os.getenv("DISCORD_RSS_BOT_DATA_DIR", "").strip() or user_data_dir(
appname="discord_rss_bot",
appauthor="TheLovinator",
roaming=True,
ensure_exists=True,
)
# TODO(TheLovinator): Add default things to the database and make the edible.