Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_cache_path(self):
mock_zip = mock.MagicMock(spec=ZipFile)
mock_zip.filename = "test"
uuid = str(uuid4())
assert cache_path(mock_zip, Path.cwd(), uuid) == Path.cwd() / f"test_{uuid}"