Fix wrong info being loaded into InstalledModule (#6720)

This commit is contained in:
Jakub Kuczys
2026-05-24 20:55:15 +02:00
committed by GitHub
parent 174237ae06
commit 443fa9f64f
5 changed files with 55 additions and 27 deletions
+2 -1
View File
@@ -129,8 +129,9 @@ def installed_cog(tmpdir):
cog_path = tmpdir.mkdir("test_repo").mkdir("test_installed_cog")
info_path = cog_path.join("info.json")
info_path.write_text(json.dumps(INFO_JSON), "utf-8")
location = Path(str(cog_path))
cog_info = InstalledModule(Path(str(cog_path)))
cog_info = InstalledModule(location, install_location=location)
return cog_info