Randomize test order
This commit is contained in:
parent
d87341d729
commit
dcd86eff69
6 changed files with 114 additions and 4 deletions
|
|
@ -44,7 +44,6 @@ type TAG_VALUE = (
|
|||
| list[str | int | float | bool | dict[str, Any] | list[Any] | None]
|
||||
| None
|
||||
)
|
||||
"""Type alias for the value of a feed tag, which can be a nested structure of dicts and lists, or None."""
|
||||
|
||||
# Tags that are exported per-feed (empty values are omitted).
|
||||
_FEED_TAGS: tuple[str, ...] = (
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue