From d064faebb9de571c4875878fd4e3422769b82c05 Mon Sep 17 00:00:00 2001 From: Taimoor Zaeem Date: Sat, 20 Sep 2025 17:43:51 +0500 Subject: [PATCH] test(io): remove unused module imports Signed-off-by: Taimoor Zaeem --- test/io/config.py | 2 -- test/io/test_cli.py | 17 ----------------- test/io/test_io.py | 2 -- test/io/test_replica.py | 2 -- test/io/test_sanity.py | 8 -------- test/io/util.py | 3 --- 6 files changed, 34 deletions(-) diff --git a/test/io/config.py b/test/io/config.py index ec2f42c2b..b0a1c364c 100644 --- a/test/io/config.py +++ b/test/io/config.py @@ -1,8 +1,6 @@ import os import pathlib import shutil -import signal - import pytest import uuid import yaml diff --git a/test/io/test_cli.py b/test/io/test_cli.py index 4609e8075..9cb7c0a85 100644 --- a/test/io/test_cli.py +++ b/test/io/test_cli.py @@ -1,25 +1,8 @@ "Unit tests for Input/Ouput of PostgREST seen as a black box." -import contextlib -import dataclasses -from datetime import datetime from operator import attrgetter -import os -import pathlib -import re -import shutil -import signal -import socket import subprocess -import tempfile -import threading -import time -import urllib.parse - -import jwt import pytest -import requests -import requests_unixsocket from syrupy.extensions.json import SingleFileSnapshotExtension import yaml diff --git a/test/io/test_io.py b/test/io/test_io.py index a7f0bf70d..6446400df 100644 --- a/test/io/test_io.py +++ b/test/io/test_io.py @@ -5,9 +5,7 @@ from operator import attrgetter import os import re import signal -import socket import time - import pytest from config import * diff --git a/test/io/test_replica.py b/test/io/test_replica.py index 24b996253..d10eb94c7 100644 --- a/test/io/test_replica.py +++ b/test/io/test_replica.py @@ -1,7 +1,5 @@ "IO tests for PostgREST started on replicas" -import pytest - from config import * from util import * from postgrest import * diff --git a/test/io/test_sanity.py b/test/io/test_sanity.py index 700b74c8c..f7c37d8f6 100644 --- a/test/io/test_sanity.py +++ b/test/io/test_sanity.py @@ -1,13 +1,5 @@ "Sanity checks for the PostgREST black box testing infrastructure." -from datetime import datetime -from operator import attrgetter -import os -import re -import signal -import socket -import time - import pytest from config import * diff --git a/test/io/util.py b/test/io/util.py index ba655c83b..e1a8d0977 100644 --- a/test/io/util.py +++ b/test/io/util.py @@ -1,7 +1,4 @@ -import contextlib -import socket import threading - import jwt