test(pytest): remove star imports to please ruff linter
This commit is contained in:
committed by
Wolfgang Walther
parent
32eb6ebf19
commit
4ce859bf46
@@ -12,7 +12,6 @@
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
|
||||
@@ -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,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
@@ -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
@@ -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,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):
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
|
||||
import pytest
|
||||
|
||||
from util import *
|
||||
from postgrest import *
|
||||
from postgrest import freeport, run
|
||||
|
||||
|
||||
def test_port_connection(defaultenv):
|
||||
|
||||
Reference in New Issue
Block a user