mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2026-05-27 09:06:43 -04:00
Fix wrong info being loaded into InstalledModule (#6720)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user