python3-betamax: fix ptests

1. Some tests require internet access. Set a DNS for that, if it is not
available at the start of the test.

2. Added a backported patch that fixes some failing tests, due to a
variable header value contained in a response. (fix-failing-ptest.patch)

3. Added a backported patch that avoids calling pytest fixtures directly.
If not applied, tests calling them are marked as failing by pytest.
(fix-direct-calls-to-test-fixtures.patch)

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
Gyorgy Sarvari
2025-10-19 17:59:26 +02:00
parent 975abfa259
commit b476f98381
4 changed files with 93 additions and 0 deletions
@@ -5,6 +5,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=61c15f0c146c5fb1a8ce8ba2f310d73c"
SRC_URI += " \
file://run-ptest \
file://fix-failing-ptest.patch \
file://fix-direct-calls-to-test-fixtures.patch \
"
SRC_URI[md5sum] = "b8182d43a200fc126a3bf7555626f964"