From 37d53e773734b13fab25fa2788825ef89e031b93 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Mon, 11 May 2026 00:17:29 +0545 Subject: [PATCH] feat(src/djinit/utils): add use_pytest flag to DjangoHelper context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/djinit/utils/django.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/djinit/utils/django.py b/src/djinit/utils/django.py index ac8d5c7..a659db5 100644 --- a/src/djinit/utils/django.py +++ b/src/djinit/utils/django.py @@ -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}