From a8efd395170c1aa5ad0afbcebf078431e353c566 Mon Sep 17 00:00:00 2001
From: Andreas Ellewsen <andreas@ellewsen.no>
Date: Mon, 30 Aug 2021 15:01:33 +0200
Subject: [PATCH] Update info for running unit tests

README said to use the default django command, but that does not work
with the current setup. The file has been updated to run pytest and a
pytest.ini file with the basic info needed to run the tests is now
included.
---
 README.md  | 4 +++-
 pytest.ini | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)
 create mode 100644 pytest.ini

diff --git a/README.md b/README.md
index 74d3b0df..5a0199e8 100644
--- a/README.md
+++ b/README.md
@@ -44,7 +44,9 @@ Refer to [drf-spectacular](https://github.com/tfranzel/drf-spectacular/) for det
 
 ## Testing
 
-    python manage.py test
+Use pytest with the pytest-django library to run unit tests.
+
+    pytest
 
 ## Static type analysis
 
diff --git a/pytest.ini b/pytest.ini
new file mode 100644
index 00000000..a50d688a
--- /dev/null
+++ b/pytest.ini
@@ -0,0 +1,2 @@
+[pytest]
+DJANGO_SETTINGS_MODULE = gregsite.settings.dev
-- 
GitLab