Skip to content

Commit ca80c11

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

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
@@ -24,12 +21,10 @@
2421

2522
import inspect
2623
import os
27-
import re
2824
import shutil
2925
import sys
3026
import tempfile
3127
from pathlib import Path
32-
from typing import Dict
3328

3429
import pytest
3530

@@ -56,7 +51,7 @@
5651

5752

5853
METRICS = get_metrics_logger()
59-
PHASE_REPORT_KEY = pytest.StashKey[Dict[str, pytest.CollectReport]]()
54+
PHASE_REPORT_KEY = pytest.StashKey[dict[str, pytest.CollectReport]]()
6055

6156

6257
def pytest_addoption(parser):
@@ -428,19 +423,13 @@ def rootfs_rw():
428423

429424
@pytest.fixture
430425
def uvm_plain(microvm_factory, guest_kernel_linux_5_10, rootfs):
431-
"""Create a vanilla VM, non-parametrized
432-
kernel: 5.10
433-
rootfs: Ubuntu 24.04
434-
"""
426+
"""Create a vanilla VM, non-parametrized"""
435427
return microvm_factory.build(guest_kernel_linux_5_10, rootfs)
436428

437429

438430
@pytest.fixture
439431
def uvm_plain_rw(microvm_factory, guest_kernel_linux_5_10, rootfs_rw):
440-
"""Create a vanilla VM, non-parametrized
441-
kernel: 5.10
442-
rootfs: Ubuntu 24.04
443-
"""
432+
"""Create a vanilla VM, non-parametrized"""
444433
return microvm_factory.build(guest_kernel_linux_5_10, rootfs_rw)
445434

446435

0 commit comments

Comments
 (0)