1414import app .main as main
1515import time
1616
17+
1718@pytest .fixture (scope = "session" )
1819def postgres_docker_container () -> Generator [DockerContainer , None , None ]:
1920 env_vars : dict [str , str ] = {
@@ -39,16 +40,16 @@ def postgres_docker_container() -> Generator[DockerContainer, None, None]:
3940
4041@pytest .fixture
4142def test_client (
42- change_posgtres_db_host : config .Settings ,
43- change_posgtres_db_port : config .Settings ,
43+ change_postgres_db_host : config .Settings ,
44+ change_postgres_db_port : config .Settings ,
4445) -> Generator [TestClient , None , None ]:
4546 app = reload (main ).app
4647 with TestClient (app ) as client :
4748 yield client
4849
4950
5051@pytest .fixture
51- def change_posgtres_db_host (
52+ def change_postgres_db_host (
5253 postgres_docker_container : DockerContainer , monkeypatch
5354) -> Generator [config .Settings , None , None ]:
5455 name = "APP_DB_HOST"
@@ -63,7 +64,7 @@ def change_posgtres_db_host(
6364
6465
6566@pytest .fixture
66- def change_posgtres_db_port (
67+ def change_postgres_db_port (
6768 postgres_docker_container : DockerContainer , monkeypatch
6869) -> Generator [config .Settings , None , None ]:
6970 name = "APP_DB_PORT"
0 commit comments