From 1c804909074cb299c2c440c2d36e5fb11e1a2d82 Mon Sep 17 00:00:00 2001 From: Manish Sah Date: Sat, 18 Oct 2025 17:39:42 +0545 Subject: [PATCH] test: Convert test_schema.py from unittest to pytest Refactored tests/unittests/config/test_schema.py to use pytest instead of unittest.TestCase as part of the pytest migration effort. - Removed unittest.TestCase inheritance - Maintained all original test functionality Related: canonical#6427 --- tests/unittests/config/test_schema.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unittests/config/test_schema.py b/tests/unittests/config/test_schema.py index f0dd7a5c05b..4892ffcdf5c 100644 --- a/tests/unittests/config/test_schema.py +++ b/tests/unittests/config/test_schema.py @@ -8,7 +8,6 @@ import os import re import sys -import unittest from collections import namedtuple from copy import deepcopy from errno import EACCES @@ -152,7 +151,7 @@ def test_versioned_cloud_config_schema_is_valid_json( ) -class TestCheckSchema(unittest.TestCase): +class TestCheckSchema: def test_schema_bools_have_dates(self): """ensure that new/changed/deprecated keys have an associated version key