File: tests-Drop-src-in-path-variables.patch

package info (click to toggle)
django-htmx 1.23.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 816 kB
  • sloc: javascript: 3,395; python: 956; makefile: 27; sh: 19
file content (28 lines) | stat: -rw-r--r-- 1,177 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
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Sun, 8 Jun 2025 10:36:53 +0200
Subject: tests: Drop 'src/' in path variables

We do the tests run outside the upstream source tree and need to
truncate the 'src/' part in the strings within the tests for the
documentation which point to the JS files.

Forwared: not-needed
---
 tests/test_docs.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_docs.py b/tests/test_docs.py
index 81d0c8d..290cc03 100644
--- a/tests/test_docs.py
+++ b/tests/test_docs.py
@@ -9,8 +9,8 @@ from django.test import SimpleTestCase
 class TemplateTagsTests(SimpleTestCase):
     def test_htmx_versions_match(self):
         base_dir = Path(__file__).resolve().parent.parent
-        htmx_js_path = base_dir / "src/django_htmx/static/django_htmx/htmx.js"
-        htmx_min_js_path = base_dir / "src/django_htmx/static/django_htmx/htmx.min.js"
+        htmx_js_path = base_dir / "django_htmx/static/django_htmx/htmx.js"
+        htmx_min_js_path = base_dir / "django_htmx/static/django_htmx/htmx.min.js"
         scripts_rst_path = base_dir / "docs/template_tags.rst"
 
         htmx_js_version = read_version(