Merge pull request #12506 from dev-starlight/develop

fix, Add UTF-8 encoding to read_text method
This commit is contained in:
Matthias
2026-01-02 13:56:25 +01:00
committed by GitHub
7 changed files with 29 additions and 9 deletions
+3 -1
View File
@@ -2521,7 +2521,9 @@ def test_api_strategy(botclient, tmp_path, mocker):
assert_response(rc)
assert rc.json()["strategy"] == CURRENT_TEST_STRATEGY
data = (Path(__file__).parents[1] / "strategy/strats/strategy_test_v3.py").read_text()
data = (Path(__file__).parents[1] / "strategy/strats/strategy_test_v3.py").read_text(
encoding="utf-8"
)
assert rc.json()["code"] == data
rc = client_get(client, f"{BASE_URI}/strategy/NoStrat")