Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Force pytest to ignore DJANGO_SETTINGS_MODULE

Mikail KOCAKaed2859c40b5
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cd9b1064d9..77f26efb6f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Remove thumbnail generation from migration - #3494 by @kswiatek92
- Rename 'shipping_date' field in fulfillment model to 'created' - #2433 by @kswiatek92
- Reduce number of queries for 'completeCheckout' mutation - #4989 by @IKarbowiak
+- Now force pytest to ignore the environment variable containing the django settings module - #4992 by @NyanKiyoshi
## 2.9.0
diff --git a/setup.cfg b/setup.cfg
index 9ced48ae72..cd17c782bd 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -14,12 +14,11 @@ exclude_lines =
return NotImplemented
[tool:pytest]
-addopts = -n auto --vcr-record-mode=none
+addopts = -n auto --vcr-record-mode=none --ds=tests.settings
testpaths = tests saleor
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
-DJANGO_SETTINGS_MODULE = tests.settings
markers =
integration