text: import pytest
  
  from httpx import AsyncClient
  from starlette import status
  
  import config
  from helpers import get_auth_header, get_template
  from resources import strings
  
  
  pytestmark = pytest.mark.asyncio
  
  
  workspace_templates = [
      (strings.BASE_WORKSPACE),
      (strings.INNEREYE)
  ]
  
  
  @pytest.mark.smoke
  @pytest.mark.parametrize("template_name", workspace_templates)
  async def test_get_workspace_templates(template_name, admin_token, verify) -> None:
      async with AsyncClient(verify=verify) as client:
          response = await client.get(f"https://{config.TRE_ID}.{config.RESOURCE_LOCATION}.cloudapp.azure.com{strings.API_WORKSPACE_TEMPLATES}", headers=get_auth_header(admin_token))
  
          template_names = [templates["name"] for templates in response.json()["templates"]]
          assert (template_name in template_names), f"No {template_name} template found"
  
  
  @pytest.mark.smoke
  @pytest.mark.parametrize("template_name", workspace_templates)
  async def test_getting_templates(template_name, admin_token, verify) -> None:
      async with get_template(template_name, admin_token, verify) as response:
          assert (response.status_code == status.HTTP_200_OK), f"GET Request for {template_name} creation failed"
  