import os

import pytest
from starlette.testclient import TestClient

from app.main import app


@pytest.fixture(scope="function")
def testclient():

    with TestClient(app) as client:
        # Application 'startup' handlers are called on entering the block.
        yield client
    # Application 'shutdown' handlers are called on exiting the block.

5a5615fb413c47481647198090614de4c968a8d9
<mask token>

<mask token>


@pytest.fixture(scope='function')
def testclient():
    with TestClient(app) as client:
        yield client

import os
import pytest
from starlette.testclient import TestClient
from app.main import app


@pytest.fixture(scope='function')
def testclient():
    with TestClient(app) as client:
        yield client

import os

import pytest
from starlette.testclient import TestClient

from app.main import app


@pytest.fixture(scope="function")
def testclient():

    with TestClient(app) as client:
        # Application 'startup' handlers are called on entering the block.
        yield client
    # Application 'shutdown' handlers are called on exiting the block.
