test(pytest): remove star imports to please ruff linter

This commit is contained in:
Jens Troeger
2025-10-09 10:10:40 +00:00
committed by Wolfgang Walther
parent 32eb6ebf19
commit 4ce859bf46
7 changed files with 26 additions and 13 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ import urllib.parse
import requests
import requests_unixsocket
from config import *
from config import POSTGREST_BIN, hpctixfile
def sleep_until_postgrest_scache_reload():
+2 -2
View File
@@ -2,8 +2,8 @@
import pytest
from util import *
from postgrest import *
from util import parse_server_timings_header
from postgrest import run
def test_requests_with_resource_embedding_wait_for_schema_cache_reload(defaultenv):
+8 -2
View File
@@ -6,8 +6,14 @@ import subprocess
import pytest
import yaml
from config import *
from postgrest import *
from config import (
CONFIGSDIR,
FIXTURES,
POSTGREST_BIN,
get_admin_host_and_port_from_config,
hpctixfile,
)
from postgrest import freeport, is_ipv6, run, set_statement_timeout
class ExtraNewLinesDumper(yaml.SafeDumper):
+13 -3
View File
@@ -8,9 +8,19 @@ import signal
import time
import pytest
from config import *
from util import *
from postgrest import *
from config import BASEDIR, CONFIGSDIR, FIXTURES, SECRET
from util import Thread, authheader, jwtauthheader, parse_server_timings_header
from postgrest import (
freeport,
is_ipv6,
reset_statement_timeout,
run,
set_statement_timeout,
sleep_until_postgrest_config_reload,
sleep_until_postgrest_full_reload,
sleep_until_postgrest_scache_reload,
wait_until_exit,
)
@pytest.mark.parametrize(
+1 -2
View File
@@ -1,7 +1,6 @@
"IO tests for PostgREST started on replicas"
from util import *
from postgrest import *
from postgrest import run
def test_sanity_replica(replicaenv):
+1 -2
View File
@@ -2,8 +2,7 @@
import pytest
from util import *
from postgrest import *
from postgrest import freeport, run
def test_port_connection(defaultenv):