refactor: flatten app/scoreboard/ subpackage and rename files for clarity
This commit is contained in:
@@ -81,10 +81,10 @@ def flask_client(tmp_path, monkeypatch):
|
||||
|
||||
# Patch module-level path constants so no reloads are needed
|
||||
import app.routes as routes
|
||||
import app.scoreboard.process_data as process_data
|
||||
import app.games as games
|
||||
|
||||
monkeypatch.setattr(routes, "SCOREBOARD_DATA_FILE", str(scoreboard_file))
|
||||
monkeypatch.setattr(process_data, "DB_PATH", str(db_path))
|
||||
monkeypatch.setattr(games, "DB_PATH", str(db_path))
|
||||
|
||||
from app import app as flask_app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user