← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~ikoruk/lpci:fix-lpci-tests into lpci:main

 

Yuliy Schwartzburg has proposed merging ~ikoruk/lpci:fix-lpci-tests into lpci:main.

Commit message:
fix: fix lpci tests on focal and failing linter and doc tests

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~ikoruk/lpci/+git/lpci/+merge/487559
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~ikoruk/lpci:fix-lpci-tests into lpci:main.
diff --git a/NEWS.rst b/NEWS.rst
index 42530b0..2d3da35 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -3,20 +3,20 @@ Version history
 ===============
 
 0.2.12 (2025-04-16)
-==================
+===================
 
 - Reverts changes in 0.2.11 and 0.2.10
 - Use "security.nesting=true" for GPU LPCI builds to workaround LPCI Noble failures
-  when running on a focal host due to apparmor permission issues. 
+  when running on a focal host due to apparmor permission issues.
 
 0.2.11 (2025-04-11)
-==================
+===================
 
 - Do not use base instances to run LPCI jobs,
   because we can't set raw.apparmor config on base instance
 
 0.2.10 (2025-04-11)
-==================
+===================
 
 - Set raw.apparmor config on LPCI builds because Noble builds
   were failing on Focal host due to permission issues.
diff --git a/lpci/commands/tests/test_run.py b/lpci/commands/tests/test_run.py
index efd180c..6078a7d 100644
--- a/lpci/commands/tests/test_run.py
+++ b/lpci/commands/tests/test_run.py
@@ -3545,7 +3545,10 @@ class TestRun(RunBaseTestCase):
         lxc.profile_edit.assert_called_once_with(
             profile="default",
             config={
-                "config": {"nvidia.runtime": "true", "security.nesting": "true"},
+                "config": {
+                    "nvidia.runtime": "true",
+                    "security.nesting": "true",
+                },
                 "devices": {"gpu": {"type": "gpu"}},
             },
             project="test-project",
@@ -4816,7 +4819,10 @@ class TestRunOne(RunBaseTestCase):
         lxc.profile_edit.assert_called_once_with(
             profile="default",
             config={
-                "config": {"nvidia.runtime": "true", "security.nesting": "true"},
+                "config": {
+                    "nvidia.runtime": "true",
+                    "security.nesting": "true",
+                },
                 "devices": {"gpu": {"type": "gpu"}},
             },
             project="test-project",
diff --git a/lpci/providers/tests/test_lxd.py b/lpci/providers/tests/test_lxd.py
index 8bf3940..cf49fd1 100644
--- a/lpci/providers/tests/test_lxd.py
+++ b/lpci/providers/tests/test_lxd.py
@@ -933,7 +933,10 @@ class TestLXDProvider(TestCase):
             mock_lxc.profile_edit.assert_called_once_with(
                 profile="default",
                 config={
-                    "config": {"nvidia.runtime": "true", "security.nesting": "true"},
+                    "config": {
+                        "nvidia.runtime": "true",
+                        "security.nesting": "true",
+                    },
                     "devices": {"gpu": {"type": "gpu"}},
                 },
                 project="test-project",
diff --git a/requirements.txt b/requirements.txt
index 47469ed..ca19fb4 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -46,7 +46,7 @@ launchpadlib[keyring]==1.11.0
     # via -r requirements.in
 lazr-restfulclient==0.14.6
     # via launchpadlib
-lazr-uri==1.0.6
+lazr-uri==1.0.7
     # via
     #   launchpadlib
     #   wadllib

Follow ups