From 16fd8327ba97880d82e2c43bc96284e89805aa15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Barb=C3=A1chano?= Date: Thu, 19 Dec 2024 11:05:59 +0100 Subject: [PATCH] tests: clean up conftest.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove unused import Signed-off-by: Pablo Barbáchano --- tests/conftest.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index fb1fc0a2a98..8c81714f716 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,9 +1,6 @@ # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -# We import some fixtures that are unused. Disable that too. -# pylint:disable=unused-import - """Imported by pytest at the start of every test session. # Fixture Goals @@ -25,12 +22,10 @@ import inspect import json import os -import re import shutil import sys import tempfile from pathlib import Path -from typing import Dict import pytest @@ -57,7 +52,7 @@ METRICS = get_metrics_logger() -PHASE_REPORT_KEY = pytest.StashKey[Dict[str, pytest.CollectReport]]() +PHASE_REPORT_KEY = pytest.StashKey[dict[str, pytest.CollectReport]]() def pytest_addoption(parser): @@ -456,19 +451,13 @@ def rootfs_rw(): @pytest.fixture def uvm_plain(microvm_factory, guest_kernel_linux_5_10, rootfs): - """Create a vanilla VM, non-parametrized - kernel: 5.10 - rootfs: Ubuntu 24.04 - """ + """Create a vanilla VM, non-parametrized""" return microvm_factory.build(guest_kernel_linux_5_10, rootfs) @pytest.fixture def uvm_plain_rw(microvm_factory, guest_kernel_linux_5_10, rootfs_rw): - """Create a vanilla VM, non-parametrized - kernel: 5.10 - rootfs: Ubuntu 24.04 - """ + """Create a vanilla VM, non-parametrized""" return microvm_factory.build(guest_kernel_linux_5_10, rootfs_rw)