Browse Source

[emacs] Keep db when running django tests

Colin Powell 15 hours ago
parent
commit
c5dd8b2db0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      emacs/.config/doom/+django-tests.el

+ 1 - 1
emacs/.config/doom/+django-tests.el

@@ -48,7 +48,7 @@
   (let* ((module-part (or module ""))
   (let* ((module-part (or module ""))
          (selector-part (if selector (concat "." selector) ""))
          (selector-part (if selector (concat "." selector) ""))
          (param (string-trim (concat module-part selector-part)))
          (param (string-trim (concat module-part selector-part)))
-         (command (format "python manage.py test %s" param)))
+         (command (format "python manage.py test --keepdb %s" param)))
     (message "Running command: %s" command)
     (message "Running command: %s" command)
     (projectile-run-async-shell-command-in-root command "*Django tests*")))
     (projectile-run-async-shell-command-in-root command "*Django tests*")))