mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 14:58:51 -06:00
23 lines
487 B
Python
23 lines
487 B
Python
"""Fixture readers shared by the RetroBat launcher test modules."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import tests
|
|
|
|
import textwrap
|
|
from pathlib import Path
|
|
|
|
from scraper.retrobat_generators import GENERATORS
|
|
from scraper.csharp_source import Source
|
|
|
|
|
|
REPO_ROOT = Path(__file__).resolve().parent.parent
|
|
|
|
G = GENERATORS
|
|
|
|
|
|
def _sources(**texts: str) -> dict[str, Source]:
|
|
return {
|
|
path: Source(path, textwrap.dedent(text).lstrip("\n")) for path, text in texts.items()
|
|
}
|