Clean up imports in cucumber features

Reorder and simplify imports in testing/cucumber feature files: remove noqa comments in environment.py, import parallel_support consistently, remove an unused os import in parallel_support.py, and consolidate/add parallel_support imports in step definition modules to satisfy linters and remove redundancy.
This commit is contained in:
Ludy87
2026-08-16 15:56:04 +02:00
parent 580ad97321
commit 444f6ea01f
4 changed files with 4 additions and 7 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ import sys
import requests
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "steps"))
import job_support # noqa: E402
import parallel_support # noqa: E402
import job_support
import parallel_support
_BASE_URL = "http://localhost:8080"
_CONTAINER_NAME = os.environ.get("TEST_CONTAINER_NAME", "")
@@ -1,8 +1,7 @@
"""Concurrency steps, usable either before the request or after it."""
from behave import given, then, when
import parallel_support
from behave import given, then, when
def _set_repeat(context, count, decoy=False):
@@ -2,7 +2,6 @@
import io
import json as json_module
import os
import re
import sys
import zipfile
@@ -7,6 +7,7 @@ import re
import string
import zipfile
import parallel_support
import requests
from behave import given, then, when
from PIL import Image, ImageDraw
@@ -16,8 +17,6 @@ from reportlab.lib.pagesizes import letter
from reportlab.lib.utils import ImageReader
from reportlab.pdfgen import canvas
import parallel_support
API_HEADERS = {"X-API-KEY": "123456789"}
#########