]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: avoid function name 'setup'
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 15 Jul 2023 08:48:39 +0000 (10:48 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 20 Jul 2023 07:12:50 +0000 (09:12 +0200)
commit4f399f277cd0116944642ea7246795678fcb495f
tree673221448d411ac927c92ae798250782e9f5f883
parent06fc19ca4de943827f5aa026f7aa9c3a05411677
test: avoid function name 'setup'

pytest 7.3.2 treats the function name 'setup' as a fixture [1].

This leads to errors like:

    TypeError: setup() missing 2 required positional arguments:
    'disk_img' and 'osindications'

Rename setup() to capsule_setup().

[1] How to run tests written for nose
    https://docs.pytest.org/en/7.3.x/how-to/nose.html

Fixes: 482ef90aeb4c ("test: efi_capsule: refactor efi_capsule test")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/py/tests/test_efi_capsule/capsule_common.py
test/py/tests/test_efi_capsule/test_capsule_firmware_fit.py
test/py/tests/test_efi_capsule/test_capsule_firmware_raw.py
test/py/tests/test_efi_capsule/test_capsule_firmware_signed_fit.py
test/py/tests/test_efi_capsule/test_capsule_firmware_signed_raw.py