make test file path comparison work on windows systems

This commit is contained in:
Lincoln Stein 2023-11-26 18:40:22 -05:00
parent 8ef596eac7
commit 6da508f147

View File

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