mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 10:33:22 +01:00
Merge pull request #3394 from rommapp/copilot/fix-libretro-games-identified
Treat Libretro-only ROM matches as identified during scan
This commit is contained in:
@@ -373,6 +373,7 @@ class Rom(BaseModel):
|
||||
and not self.flashpoint_id
|
||||
and not self.hltb_id
|
||||
and not self.gamelist_id
|
||||
and not self.libretro_id
|
||||
)
|
||||
|
||||
@property
|
||||
|
||||
@@ -4,3 +4,10 @@ from models.rom import Rom
|
||||
def test_rom(rom: Rom):
|
||||
assert rom.fs_path == "test_platform_slug/roms"
|
||||
assert rom.full_path == "test_platform_slug/roms/test_rom.zip"
|
||||
|
||||
|
||||
def test_rom_with_libretro_match_is_identified(rom: Rom):
|
||||
rom.libretro_id = "abc123"
|
||||
|
||||
assert rom.is_unidentified is False
|
||||
assert rom.is_identified is True
|
||||
|
||||
Reference in New Issue
Block a user