Skip to content

Commit 7e1f3d8

Browse files
committed
tests: clean up conftest.py
Remove unused import Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent 9338d79 commit 7e1f3d8

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

tests/conftest.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
# We import some fixtures that are unused. Disable that too.
5-
# pylint:disable=unused-import
6-
74
"""Imported by pytest at the start of every test session.
85
96
# Fixture Goals
@@ -25,12 +22,10 @@
2522
import inspect
2623
import json
2724
import os
28-
import re
2925
import shutil
3026
import sys
3127
import tempfile
3228
from pathlib import Path
33-
from typing import Dict
3429

3530
import pytest
3631

@@ -57,7 +52,7 @@
5752

5853

5954
METRICS = get_metrics_logger()
60-
PHASE_REPORT_KEY = pytest.StashKey[Dict[str, pytest.CollectReport]]()
55+
PHASE_REPORT_KEY = pytest.StashKey[dict[str, pytest.CollectReport]]()
6156

6257

6358
def pytest_addoption(parser):
@@ -456,19 +451,13 @@ def rootfs_rw():
456451

457452
@pytest.fixture
458453
def uvm_plain(microvm_factory, guest_kernel_linux_5_10, rootfs):
459-
"""Create a vanilla VM, non-parametrized
460-
kernel: 5.10
461-
rootfs: Ubuntu 24.04
462-
"""
454+
"""Create a vanilla VM, non-parametrized"""
463455
return microvm_factory.build(guest_kernel_linux_5_10, rootfs)
464456

465457

466458
@pytest.fixture
467459
def uvm_plain_rw(microvm_factory, guest_kernel_linux_5_10, rootfs_rw):
468-
"""Create a vanilla VM, non-parametrized
469-
kernel: 5.10
470-
rootfs: Ubuntu 24.04
471-
"""
460+
"""Create a vanilla VM, non-parametrized"""
472461
return microvm_factory.build(guest_kernel_linux_5_10, rootfs_rw)
473462

474463

0 commit comments

Comments
 (0)