Skip to content

Commit

Permalink
Merge pull request #282 from lsst/tickets/DM-47262
Browse files Browse the repository at this point in the history
DM-47262: Remove unneeded type marker in FastAPI template
  • Loading branch information
rra authored Oct 29, 2024
2 parents 3780fd9 + d5cbc09 commit d7bcde3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def arq_queue() -> MockArqQueue:
async def client(app: FastAPI) -> AsyncIterator[AsyncClient]:
"""Return an ``httpx.AsyncClient`` configured to talk to the test app."""
async with AsyncClient(
transport=ASGITransport(app=app), # type: ignore[arg-type]
base_url="https://example.com/",
base_url="https://example.com/", transport=ASGITransport(app=app)
) as client:
yield client

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ async def app() -> AsyncIterator[FastAPI]:
async def client(app: FastAPI) -> AsyncIterator[AsyncClient]:
"""Return an ``httpx.AsyncClient`` configured to talk to the test app."""
async with AsyncClient(
transport=ASGITransport(app=app), # type: ignore[arg-type]
base_url="https://example.com/",
base_url="https://example.com/", transport=ASGITransport(app=app)
) as client:
yield client
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ def arq_queue() -> MockArqQueue:
async def client(app: FastAPI) -> AsyncIterator[AsyncClient]:
"""Return an ``httpx.AsyncClient`` configured to talk to the test app."""
async with AsyncClient(
transport=ASGITransport(app=app), # type: ignore[arg-type]
base_url="https://example.com/",
base_url="https://example.com/", transport=ASGITransport(app=app)
) as client:
yield client
{%- if cookiecutter.flavor == "UWS" %}
Expand Down
2 changes: 1 addition & 1 deletion project_templates/technote_md/testn-000/technote.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ series_id = "TESTN"
canonical_url = "https://testn-000.lsst.io"
github_url = "https://github.com/lsst/testn-000"
github_default_branch = "main"
date_created = 2024-10-16T22:53:26Z
date_created = 2024-10-29T18:29:14Z
organization.name = "Vera C. Rubin Observatory"
organization.ror = "https://ror.org/048g3cy84"
license.id = "CC-BY-4.0"
Expand Down
2 changes: 1 addition & 1 deletion project_templates/technote_rst/testn-000/technote.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ series_id = "TESTN"
canonical_url = "https://testn-000.lsst.io"
github_url = "https://github.com/lsst/testn-000"
github_default_branch = "main"
date_created = 2024-10-16T22:53:26Z
date_created = 2024-10-29T18:29:15Z
organization.name = "Vera C. Rubin Observatory"
organization.ror = "https://ror.org/048g3cy84"
license.id = "CC-BY-4.0"
Expand Down

0 comments on commit d7bcde3

Please sign in to comment.