Skip to content

tests/unit_tests: sync unit tests after model changes (processed_by_kcidb_bridge field) #593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
2 changes: 2 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 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'

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 "from kernelci.api.models import Node, Revision" should be placed before "from tests.unit_tests.conftest import BEARER_TOKEN"
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,7 @@
'treeid',
'updated',
'user_groups',
'processed_by_kcidb_bridge',
}


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

Check warning on line 111 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 +127,7 @@
"data": {
"kernel_revision": {
"tree": "mainline",
"url": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",

Check warning on line 130 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 +204,7 @@
"""
revision_obj = Revision(
tree="mainline",
url="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",

Check warning on line 207 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 +215,7 @@
name="checkout",
path=["checkout"],
group="blah",
data = {'kernel_revision': revision_obj},

Check warning on line 218 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 218 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 +248,7 @@
'treeid',
'updated',
'user_groups',
'processed_by_kcidb_bridge',
}


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

Check warning on line 289 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 +308,7 @@
"data": {
"kernel_revision": {
"tree": "mainline",
"url": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",

Check warning on line 311 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