File: 0002-Add-DJANGO_SETTINGS_MODULE-to-get-picked-up-by-pytes.patch

package info (click to toggle)
django-oauth-toolkit 1.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 812 kB
  • sloc: python: 5,244; makefile: 161
file content (20 lines) | stat: -rw-r--r-- 503 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Michael Fladischer <FladischerMichael@fladi.at>
Date: Fri, 1 Jun 2018 18:03:50 +0200
Subject: Add DJANGO_SETTINGS_MODULE to get picked up by pytest-django.

---
 tox.ini | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tox.ini b/tox.ini
index 96f2bbd..7a1d12b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,6 +8,7 @@ envlist =
 
 [pytest]
 django_find_project = false
+DJANGO_SETTINGS_MODULE = tests.settings
 
 [testenv]
 commands = pytest --cov=oauth2_provider --cov-report= --cov-append {posargs}