Skip to content

Commit 4ce859b

Browse files
jenstroegerwolfgangwalther
authored andcommitted
test(pytest): remove star imports to please ruff linter
1 parent 32eb6eb commit 4ce859b

File tree

7 files changed

+26
-13
lines changed

7 files changed

+26
-13
lines changed

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# All configuration values have a default; values that are commented out
1313
# serve to show the default.
1414

15-
import sys
1615
import os
1716

1817
# If extensions (or modules to document with autodoc) are in another directory,

test/io/postgrest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import requests
1414
import requests_unixsocket
1515

16-
from config import *
16+
from config import POSTGREST_BIN, hpctixfile
1717

1818

1919
def sleep_until_postgrest_scache_reload():

test/io/test_big_schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import pytest
44

5-
from util import *
6-
from postgrest import *
5+
from util import parse_server_timings_header
6+
from postgrest import run
77

88

99
def test_requests_with_resource_embedding_wait_for_schema_cache_reload(defaultenv):

test/io/test_cli.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@
66
import pytest
77
import yaml
88

9-
from config import *
10-
from postgrest import *
9+
from config import (
10+
CONFIGSDIR,
11+
FIXTURES,
12+
POSTGREST_BIN,
13+
get_admin_host_and_port_from_config,
14+
hpctixfile,
15+
)
16+
from postgrest import freeport, is_ipv6, run, set_statement_timeout
1117

1218

1319
class ExtraNewLinesDumper(yaml.SafeDumper):

test/io/test_io.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,19 @@
88
import time
99
import pytest
1010

11-
from config import *
12-
from util import *
13-
from postgrest import *
11+
from config import BASEDIR, CONFIGSDIR, FIXTURES, SECRET
12+
from util import Thread, authheader, jwtauthheader, parse_server_timings_header
13+
from postgrest import (
14+
freeport,
15+
is_ipv6,
16+
reset_statement_timeout,
17+
run,
18+
set_statement_timeout,
19+
sleep_until_postgrest_config_reload,
20+
sleep_until_postgrest_full_reload,
21+
sleep_until_postgrest_scache_reload,
22+
wait_until_exit,
23+
)
1424

1525

1626
@pytest.mark.parametrize(

test/io/test_replica.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"IO tests for PostgREST started on replicas"
22

3-
from util import *
4-
from postgrest import *
3+
from postgrest import run
54

65

76
def test_sanity_replica(replicaenv):

test/io/test_sanity.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
import pytest
44

5-
from util import *
6-
from postgrest import *
5+
from postgrest import freeport, run
76

87

98
def test_port_connection(defaultenv):

0 commit comments

Comments
 (0)