File: 0001-Fix-tests-for-pytest-4.patch

package info (click to toggle)
django-sass-processor 0.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 244 kB
  • sloc: python: 826; makefile: 4
file content (33 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Antonio Terceiro <terceiro@debian.org>
Date: Sun, 20 Sep 2020 09:43:48 -0300
Subject: Fix tests for pytest 4
Forwarded: https://github.com/jrief/django-sass-processor/pull/141

---
 tests/settings.py            | 3 +++
 tests/test_sass_processor.py | 1 -
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/settings.py b/tests/settings.py
index 42728d1..56b1322 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -85,3 +85,6 @@ SASS_PROCESSOR_CUSTOM_FUNCTIONS = {
 }
 
 SASS_BLUE_COLOR = '#0000ff'
+
+
+STATIC_ROOT = os.path.join(os.path.dirname(__file__), "tmpstatic")
diff --git a/tests/test_sass_processor.py b/tests/test_sass_processor.py
index 6efe3cd..06d6994 100644
--- a/tests/test_sass_processor.py
+++ b/tests/test_sass_processor.py
@@ -10,7 +10,6 @@ from django.template.loader import get_template
 from django.test import TestCase, override_settings
 
 
-@override_settings(STATIC_ROOT=py.test.ensuretemp('static').strpath)
 class SassProcessorTest(TestCase):
 
     def setUp(self):