Remove some unnecessary fixture arguments

This commit is contained in:
Heikki Linnakangas
2021-10-25 14:14:45 +03:00
parent f337d73a6c
commit 28af3e5008
9 changed files with 7 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
from contextlib import closing
from fixtures.zenith_fixtures import PostgresFactory, ZenithPageserver
from fixtures.zenith_fixtures import PostgresFactory
from fixtures.log_helper import log
pytest_plugins = ("fixtures.zenith_fixtures")
@@ -9,7 +9,7 @@ pytest_plugins = ("fixtures.zenith_fixtures")
#
# Test starting Postgres with custom options
#
def test_config(zenith_cli, pageserver: ZenithPageserver, postgres: PostgresFactory, pg_bin):
def test_config(zenith_cli, postgres: PostgresFactory):
# Create a branch for us
zenith_cli.run(["branch", "test_config", "empty"])

View File

@@ -101,4 +101,4 @@ def test_dropdb(
assert os.path.isdir(dbpath) == False
# Check that we restore the content of the datadir correctly
check_restored_datadir_content(zenith_cli, test_output_dir, pg, pageserver.service_port.pg)
check_restored_datadir_content(test_output_dir, pg, pageserver.service_port.pg)

View File

@@ -71,4 +71,4 @@ def test_multixact(pageserver: ZenithPageserver,
assert next_multixact_id_new == next_multixact_id
# Check that we restore the content of the datadir correctly
check_restored_datadir_content(zenith_cli, test_output_dir, pg_new, pageserver.service_port.pg)
check_restored_datadir_content(test_output_dir, pg_new, pageserver.service_port.pg)