mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-03 05:10:16 +03:00
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:
@@ -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"}
|
||||
|
||||
#########
|
||||
|
||||
Reference in New Issue
Block a user