Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ Every project is built with the same tooling

- [`fastapi-sqlalchemy-template`](https://github.com/modern-python/fastapi-sqlalchemy-template): Dockerized FastAPI + SQLAlchemy 2 + PostgreSQL app template with DI
- [`litestar-sqlalchemy-template`](https://github.com/modern-python/litestar-sqlalchemy-template): Dockerized Litestar + SQLAlchemy 2 + PostgreSQL app template with DI
- [`chat-app`](https://github.com/modern-python/chat-app): Reference chat application for the modern-python organisation

## Dependency injection { #di }

Expand Down
1 change: 0 additions & 1 deletion profile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Open-source templates and libraries for building production-ready Python applica
|---|---|---|
| [`fastapi-sqlalchemy-template`](https://github.com/modern-python/fastapi-sqlalchemy-template) | Dockerized FastAPI + SQLAlchemy 2 + PostgreSQL app template with DI | [![Stars](https://img.shields.io/github/stars/modern-python/fastapi-sqlalchemy-template)](https://github.com/modern-python/fastapi-sqlalchemy-template/stargazers) |
| [`litestar-sqlalchemy-template`](https://github.com/modern-python/litestar-sqlalchemy-template) | Dockerized Litestar + SQLAlchemy 2 + PostgreSQL app template with DI | [![Stars](https://img.shields.io/github/stars/modern-python/litestar-sqlalchemy-template)](https://github.com/modern-python/litestar-sqlalchemy-template/stargazers) |
| [`chat-app`](https://github.com/modern-python/chat-app) | Reference chat application for the modern-python organisation | [![Stars](https://img.shields.io/github/stars/modern-python/chat-app)](https://github.com/modern-python/chat-app/stargazers) |

### Dependency injection

Expand Down
6 changes: 3 additions & 3 deletions tests/test_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ def _repos(section: str) -> list[str]:

def test_every_listed_project_mark_has_a_profile_row() -> None:
"""INVARIANT: the repos listed in `profile/README.md` are exactly the repos in
`projects.py::MANIFEST` minus the `modern-di-*` integrations.
`projects.py::MANIFEST` minus the `modern-di-*` integrations and `chat-app`.

They are the two halves of one act — a repo joins the org by getting a mark and a
profile row — but nothing links them, so adding, renaming, or unpublishing a repo
updates one and silently leaves the other behind. The failure is invisible: a mark
nobody links to, or a row whose banner 404s. Integrations keep their marks, because
their READMEs load the lockups from this repo, but are listed only on the modern-di
docs site.
docs site. `chat-app` keeps its mark but is not listed.
"""
listed = {repo for section in _sections().values() for repo in _repos(section)}
assert listed == {repo for repo in p.MANIFEST if not repo.startswith("modern-di-")}
assert listed == {repo for repo in p.MANIFEST if not repo.startswith("modern-di-") and repo != "chat-app"}


def test_di_table_lists_only_the_two_frameworks() -> None:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_home_page_supplies_its_own_h1() -> None:

def test_every_listed_project_mark_has_a_site_entry() -> None:
"""INVARIANT: the repos in the org site's project lists are exactly the repos in
`projects.py::MANIFEST` minus the `modern-di-*` integrations.
`projects.py::MANIFEST` minus the `modern-di-*` integrations and `chat-app`.

It is the site's half of the profile-row invariant. A hand-kept list of expected
repos drifts the same way the page does, so a repo added to the org and the profile
Expand All @@ -32,4 +32,4 @@ def test_every_listed_project_mark_has_a_site_entry() -> None:
flags=re.M,
)
)
assert listed == {repo for repo in p.MANIFEST if not repo.startswith("modern-di-")}
assert listed == {repo for repo in p.MANIFEST if not repo.startswith("modern-di-") and repo != "chat-app"}
Loading