Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/unit_tests/test_node_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import json

from tests.unit_tests.conftest import BEARER_TOKEN
from kernelci.api.models import Node, Revision

Check warning on line 16 in tests/unit_tests/test_node_handler.py

View workflow job for this annotation

GitHub Actions / Lint

third party import "kernelci.api.models.Node" should be placed before first party import "tests.unit_tests.conftest.BEARER_TOKEN"

Check failure on line 16 in tests/unit_tests/test_node_handler.py

View workflow job for this annotation

GitHub Actions / Lint

Unable to import 'kernelci.api.models'
from api.models import PageModel


Expand All @@ -27,7 +27,7 @@
"""
revision_data = {
"tree": "mainline",
"url": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",

Check warning on line 30 in tests/unit_tests/test_node_handler.py

View workflow job for this annotation

GitHub Actions / Lint

line too long (84 > 79 characters)
"branch": "master",
"commit": "2a987e65025e2b79c6d453b78cb5985ac6e5eb26",
"describe": "v5.16-rc4-31-g2a987e65025e",
Expand All @@ -40,7 +40,7 @@
name="checkout",
path=["checkout"],
group="debug",
data= {'kernel_revision': revision_obj},

Check warning on line 43 in tests/unit_tests/test_node_handler.py

View workflow job for this annotation

GitHub Actions / Lint

unexpected spaces around keyword / parameter equals
parent=None,
state="closing",
result=None,
Expand Down Expand Up @@ -87,6 +87,8 @@
'treeid',
'updated',
'user_groups',
'processed_by_kcidb_bridge',
'retry_counter',
}


Expand All @@ -107,7 +109,7 @@
"data": {
"kernel_revision": {
"tree": "mainline",
"url": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",

Check warning on line 112 in tests/unit_tests/test_node_handler.py

View workflow job for this annotation

GitHub Actions / Lint

line too long (92 > 79 characters)
"branch": "master",
"commit": "2a987e65025e2b79c6d453b78cb5985ac6e5eb26",
"describe": "v5.16-rc4-31-g2a987e65025e",
Expand All @@ -126,7 +128,7 @@
"data": {
"kernel_revision": {
"tree": "mainline",
"url": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",

Check warning on line 131 in tests/unit_tests/test_node_handler.py

View workflow job for this annotation

GitHub Actions / Lint

line too long (92 > 79 characters)
"branch": "master",
"commit": "2a987e65025e2b79c6d453b78cb5985ac6e5eb45",
"describe": "v5.16-rc4-31-g2a987e65025e",
Expand Down Expand Up @@ -203,7 +205,7 @@
"""
revision_obj = Revision(
tree="mainline",
url="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",

Check warning on line 208 in tests/unit_tests/test_node_handler.py

View workflow job for this annotation

GitHub Actions / Lint

line too long (81 > 79 characters)
branch="master",
commit="2a987e65025e2b79c6d453b78cb5985ac6e5eb26",
describe="v5.16-rc4-31-g2a987e65025e"
Expand All @@ -214,7 +216,7 @@
name="checkout",
path=["checkout"],
group="blah",
data = {'kernel_revision': revision_obj},

Check warning on line 219 in tests/unit_tests/test_node_handler.py

View workflow job for this annotation

GitHub Actions / Lint

unexpected spaces around keyword / parameter equals

Check warning on line 219 in tests/unit_tests/test_node_handler.py

View workflow job for this annotation

GitHub Actions / Lint

unexpected spaces around keyword / parameter equals
parent=None,
state="closing",
result=None,
Expand Down Expand Up @@ -247,6 +249,8 @@
'treeid',
'updated',
'user_groups',
'processed_by_kcidb_bridge',
'retry_counter',
}


Expand Down Expand Up @@ -284,7 +288,7 @@
"data": {
"kernel_revision": {
"tree": "mainline",
"url": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",

Check warning on line 291 in tests/unit_tests/test_node_handler.py

View workflow job for this annotation

GitHub Actions / Lint

line too long (92 > 79 characters)
"branch": "master",
"commit": "2a987e65025e2b79c6d453b78cb5985ac6e5eb26",
"describe": "v5.16-rc4-31-g2a987e65025e",
Expand All @@ -306,7 +310,7 @@
"data": {
"kernel_revision": {
"tree": "mainline",
"url": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",

Check warning on line 313 in tests/unit_tests/test_node_handler.py

View workflow job for this annotation

GitHub Actions / Lint

line too long (92 > 79 characters)
"branch": "master",
"commit": "2a987e65025e2b79c6d453b78cb5985ac6e5eb45",
"describe": "v5.16-rc4-31-g2a987e65025e",
Expand Down