make test file path comparison work on windows systems (another fix)

This commit is contained in:
Lincoln Stein 2023-11-26 18:52:25 -05:00
parent 6da508f147
commit dbd0151c0e

View File

@ -147,7 +147,7 @@ def test_background_install(installer: ModelInstallServiceBase, test_file: Path,
event_names = [x.event_name for x in bus.events]
assert "model_install_started" in event_names
assert "model_install_completed" in event_names
assert bus.events[0].payload["source"] == source.as_posix()
assert Path(bus.events[0].payload["source"]) == Path(source)
assert Path(bus.events[1].payload["source"]) == Path(source)
key = bus.events[1].payload["key"]
assert key is not None