Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion test/io/postgrest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import requests
import requests_unixsocket

from config import *
from config import POSTGREST_BIN, hpctixfile


def sleep_until_postgrest_scache_reload():
Expand Down
4 changes: 2 additions & 2 deletions test/io/test_big_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
10 changes: 8 additions & 2 deletions test/io/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@
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):
Expand Down
16 changes: 13 additions & 3 deletions test/io/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,19 @@
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(
Expand Down
3 changes: 1 addition & 2 deletions test/io/test_replica.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
3 changes: 1 addition & 2 deletions test/io/test_sanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

import pytest

from util import *
from postgrest import *
from postgrest import freeport, run


def test_port_connection(defaultenv):
Expand Down