mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-19 20:52:22 +02:00
Skip the `tests/test_archives.py::test_scan_password_protected_archive`
test which passed in CI but failed days later on one builder. A test
preparation script fetches sample a .rar file from the rarfile upstream
repo and fails when requests are sporadically rate-limited at the host
server, since the file returned is a .html file and not the .rar
archive. The mismatch in the error message caused the test to fail.
```
_____________________ test_scan_password_protected_archive _____________________
path = PosixPath('/home/buildozer/aports/testing/subliminal/src/subliminal-2.6.0/tests/data/rar/pwd-protected.rar')
name = None
def scan_archive(path: str | os.PathLike, name: str | None = None) -> Video:
"""Scan an archive from a `path`.
[...]
rar = {'pwd-protected': '/home/buildozer/aports/testing/subliminal/src/subliminal-2.6.0/tests/data/rar/pwd-protected.rar', 'simple': '/home/buildozer/aports/testing/subliminal/src/subliminal-2.6.0/tests/data/rar/simple.rar'}
def test_scan_password_protected_archive(rar: dict[str, str]) -> None:
> with pytest.raises(ArchiveError, match='Rar requires a password'):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E AssertionError: Regex pattern did not match.
E Expected regex: 'Rar requires a password'
E Actual message: "'.rar' is not a valid archive"
/home/buildozer/aports/testing/subliminal/src/subliminal-2.6.0/tests/test_archives.py:69: AssertionError
```