refactor: flatten app/scoreboard/ subpackage and rename files for clarity
This commit is contained in:
Binary file not shown.
@@ -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
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from tests.conftest import make_game
|
||||
from app.scoreboard.process_data import (
|
||||
from app.games import (
|
||||
convert_game_state,
|
||||
get_game_outcome,
|
||||
process_period,
|
||||
Reference in New Issue
Block a user