text: from asgi_lifespan import LifespanManager
  from httpx import AsyncClient
  from main import app
  from pythonit_toolkit.api.graphql_test_client import GraphQLClient
  from users.settings import PASTAPORTO_SECRET, SERVICE_TO_SERVICE_SECRET
  from ward import fixture
  
  
  @fixture
  async def testclient():
      async with LifespanManager(app):
          async with AsyncClient(app=app, base_url="http://testserver") as client:
              yield client
  
  
  @fixture()
  async def graphql_client(testclient=testclient):
      async with testclient:
          yield GraphQLClient(testclient, pastaporto_secret=PASTAPORTO_SECRET)
  
  
  @fixture()
  async def admin_graphql_client(testclient=testclient):
      async with testclient:
          yield GraphQLClient(
              testclient, admin_endpoint=True, pastaporto_secret=PASTAPORTO_SECRET
          )
  
  
  @fixture()
  async def internalapi_graphql_client(testclient=testclient):
      async with testclient:
          yield GraphQLClient(
              testclient,
              internal_api_endpoint=True,
              pastaporto_secret=PASTAPORTO_SECRET,
              service_to_service_secret=SERVICE_TO_SERVICE_SECRET,
          )
  