Skip to content

Fix first half of the pyright warnings in unit tests #743

Fix first half of the pyright warnings in unit tests

Fix first half of the pyright warnings in unit tests #743

Triggered via push August 15, 2025 09:51
Status Cancelled
Total duration 1m 57s
Artifacts

main.yml

on: push
Matrix: test
finish-coverage-upload
0s
finish-coverage-upload
Fit to window
Zoom out
Zoom in

Annotations

14 errors, 10 warnings, and 7 notices
pylint E0611: no-name-in-module: tests/test_cpiofile.py#L15
No name 'fake_filesystem' in module 'pyfakefs'
pylint E0401: import-error: tests/test_cpiofile.py#L15
Unable to import 'pyfakefs.fake_filesystem'
pylint E0611: no-name-in-module: tests/test_pci.py#L6
No name 'fake_filesystem_unittest' in module 'pyfakefs'
pylint E0401: import-error: tests/test_pci.py#L6
Unable to import 'pyfakefs.fake_filesystem_unittest'
pylint E0611: no-name-in-module: tests/test_ifrename_dynamic.py#L8
No name 'fake_filesystem_unittest' in module 'pyfakefs'
pylint E0401: import-error: tests/test_ifrename_dynamic.py#L8
Unable to import 'pyfakefs.fake_filesystem_unittest'
pylint E0611: no-name-in-module: tests/test_mountingaccessor.py#L7
No name 'fake_filesystem' in module 'pyfakefs'
pylint E0401: import-error: tests/test_mountingaccessor.py#L7
Unable to import 'pyfakefs.fake_filesystem'
pylint E0611: no-name-in-module: tests/test_ifrename_static.py#L7
No name 'fake_filesystem_unittest' in module 'pyfakefs'
pylint E0401: import-error: tests/test_ifrename_static.py#L7
Unable to import 'pyfakefs.fake_filesystem_unittest'
test (3.11, ubuntu-22.04)
Canceling since a higher priority waiting request for Unit tests-refs/heads/master exists
test (3.10, ubuntu-22.04)
The operation was canceled.
test (3.10, ubuntu-22.04)
Canceling since a higher priority waiting request for Unit tests-refs/heads/master exists
Unit tests
Canceling since a higher priority waiting request for Unit tests-refs/heads/master exists
test (3.11, ubuntu-22.04): tests/test_bootloader.py#L121
Cannot assign to attribute "entry_format" for class "MenuEntry"
test (3.11, ubuntu-22.04): tests/test_bootloader.py#L97
Cannot assign to attribute "entry_format" for class "MenuEntry"
test (3.11, ubuntu-22.04): tests/test_bootloader.py#L73
Cannot assign to attribute "entry_format" for class "MenuEntry"
test (3.11, ubuntu-22.04): tests/test_bootloader.py#L31
"close" is not a known attribute of "None" (reportOptionalMemberAccess)
test (3.11, ubuntu-22.04): tests/test_bootloader.py#L21
"read" is not a known attribute of "None" (reportOptionalMemberAccess)
test (3.11, ubuntu-22.04): tests/test_biosdevname_ns.py#L35
Cannot access attribute "forked" for class "type[Any]"
test (3.11, ubuntu-22.04): tests/httpserver_testcase.py#L49
Object of type "type[Any]" is not callable (reportCallIssue)
test (3.11, ubuntu-22.04): tests/conftest.py#L13
Object of type "type[Any]" is not callable (reportCallIssue)
test (3.11, ubuntu-22.04): tests/test_ifrename_dynamic.py#L23
unclosed file <_io.TextIOWrapper name=12 mode='r' encoding='utf-8'>
pylint R0917: too-many-positional-arguments: xcp/net/ifrename/macpci.py#L38
Refactor: Too many positional arguments (8/5)
pylint R0917: too-many-positional-arguments: xcp/repository.py#L102
Refactor: Too many positional arguments (6/5)
pylint R0917: too-many-positional-arguments: xcp/repository.py#L88
Refactor: Too many positional arguments (7/5)
pylint R0917: too-many-positional-arguments: xcp/repository.py#L73
Refactor: Too many positional arguments (8/5)
pylint R0917: too-many-positional-arguments: xcp/repository.py#L58
Refactor: Too many positional arguments (8/5)
pylint R0917: too-many-positional-arguments: xcp/repository.py#L43
Refactor: Too many positional arguments (8/5)
pylint R0917: too-many-positional-arguments: xcp/mount.py#L72
Refactor: Too many positional arguments (6/5)