From f986f73ffa0f7edce3661a1a2f8570f2ae6b8a62 Mon Sep 17 00:00:00 2001 From: "jinli.yl" Date: Thu, 27 Aug 2026 12:33:38 +0800 Subject: [PATCH] fix(tests): add missing commas in toml file reads in package version tests - Added trailing commas in the tomllib.loads calls for auto-fin and daily_paper configs - Ensured consistent syntax to prevent potential tuple misinterpretation - Improved readability and correctness of the test setup code --- tests/unit/test_package_versions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_package_versions.py b/tests/unit/test_package_versions.py index 3674b82c..dd6ef264 100644 --- a/tests/unit/test_package_versions.py +++ b/tests/unit/test_package_versions.py @@ -32,10 +32,10 @@ def test_studio_packages_have_independent_identity() -> None: studio_config = tomllib.loads((REPOSITORY / "reme_studio" / "pyproject.toml").read_text(encoding="utf-8")) npm_config = json.loads((REPOSITORY / "reme_studio" / "package.json").read_text(encoding="utf-8")) auto_fin_config = tomllib.loads( - (REPOSITORY / "plugins" / "auto-fin" / "pyproject.toml").read_text(encoding="utf-8") + (REPOSITORY / "plugins" / "auto-fin" / "pyproject.toml").read_text(encoding="utf-8"), ) daily_paper_config = tomllib.loads( - (REPOSITORY / "plugins" / "daily_paper" / "pyproject.toml").read_text(encoding="utf-8") + (REPOSITORY / "plugins" / "daily_paper" / "pyproject.toml").read_text(encoding="utf-8"), ) assert studio_config["project"]["name"] == "reme_studio"