feat(src/djinit/utils): add use_pytest flag to DjangoHelper context

Add a boolean `use_pytest` option that is populated from the project metadata and included in the generated Django assistant context. This allows projects to explicitly opt‑in to pytest integration when using djinitx.

- New Feature: Introduce `use_pytest` configuration key in the Django helper metadata dictionary.
- Enhancement: Expand context preparation to support additional project preferences.
This commit is contained in:
sankalp committed 2026-05-11 00:17:29 +05:45
1 parent 1b1d038ccd
commit 37d53e7737
1 file changed
+1
+1
View File
@@ -47,6 +47,7 @@ class DjangoHelper:
"use_tailwind": metadata.get("use_tailwind", False),
"use_htmx": metadata.get("use_htmx", False),
"use_vite": metadata.get("use_vite", False),
"use_pytest": metadata.get("use_pytest", False),
}
dev_context = {"secret_key": secret_key}