File: Update-the-tests-for-Sphinx-8.1.patch

package info (click to toggle)
sphinx-tabs 3.4.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,600 kB
  • sloc: javascript: 1,207; python: 552; xml: 364; makefile: 10; sh: 6
file content (206 lines) | stat: -rw-r--r-- 6,940 bytes parent folder | download | duplicates (2)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
From: Dmitry Shachnev <mitya57@debian.org>
Date: Sun, 24 Nov 2024 20:55:02 +0300
Subject: Update the tests for Sphinx 8.1

Forwarded: https://github.com/executablebooks/sphinx-tabs/pull/200
---
 tests/conftest.py                                                     | 4 ++++
 tests/test_build/test_basic.html                                      | 2 ++
 .../test_build/test_conditional_assets_html_assets_policy_index_.html | 2 ++
 .../test_conditional_assets_html_assets_policy_no_tabs1_.html         | 2 ++
 .../test_conditional_assets_html_assets_policy_no_tabs2_.html         | 2 ++
 tests/test_build/test_conditional_assets_index_.html                  | 2 ++
 tests/test_build/test_conditional_assets_no_tabs1_.html               | 2 ++
 tests/test_build/test_conditional_assets_no_tabs2_.html               | 2 ++
 tests/test_build/test_custom_lexer.html                               | 2 ++
 tests/test_build/test_disable_closing.html                            | 2 ++
 tests/test_build/test_disable_css_loading.html                        | 2 ++
 tests/test_build/test_nested_markup.html                              | 2 ++
 tests/test_build/test_no_tabs.html                                    | 2 ++
 tests/test_build/test_other_with_assets.html                          | 2 ++
 14 files changed, 30 insertions(+)

diff --git a/tests/conftest.py b/tests/conftest.py
index 1dbf0ad..c4452df 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -91,6 +91,10 @@ def regress_sphinx_app_output(file_regression, get_sphinx_app_output):
             for div in soup.find_all("div", {"class": "highlight"}):
                 div.decompose()
 
+            if sphinx.version_info < (8, 1):
+                body = soup.select("div.body")[0]
+                body.append(soup.new_tag("div", **{"class": "clearer"}))
+
             doc_div = soup.findAll("div", {"class": "documentwrapper"})[0]
             doc = doc_div.prettify()
 
diff --git a/tests/test_build/test_basic.html b/tests/test_build/test_basic.html
index af63887..a5cc924 100644
--- a/tests/test_build/test_basic.html
+++ b/tests/test_build/test_basic.html
@@ -37,6 +37,8 @@
      </p>
     </div>
    </div>
+   <div class="clearer">
+   </div>
   </div>
  </div>
 </div>
diff --git a/tests/test_build/test_conditional_assets_html_assets_policy_index_.html b/tests/test_build/test_conditional_assets_html_assets_policy_index_.html
index b87a329..6e1cbc8 100644
--- a/tests/test_build/test_conditional_assets_html_assets_policy_index_.html
+++ b/tests/test_build/test_conditional_assets_html_assets_policy_index_.html
@@ -243,6 +243,8 @@
      </div>
     </div>
    </section>
+   <div class="clearer">
+   </div>
   </div>
  </div>
 </div>
diff --git a/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.html b/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.html
index b87a329..6e1cbc8 100644
--- a/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.html
+++ b/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.html
@@ -243,6 +243,8 @@
      </div>
     </div>
    </section>
+   <div class="clearer">
+   </div>
   </div>
  </div>
 </div>
diff --git a/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.html b/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.html
index b87a329..6e1cbc8 100644
--- a/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.html
+++ b/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.html
@@ -243,6 +243,8 @@
      </div>
     </div>
    </section>
+   <div class="clearer">
+   </div>
   </div>
  </div>
 </div>
diff --git a/tests/test_build/test_conditional_assets_index_.html b/tests/test_build/test_conditional_assets_index_.html
index b87a329..6e1cbc8 100644
--- a/tests/test_build/test_conditional_assets_index_.html
+++ b/tests/test_build/test_conditional_assets_index_.html
@@ -243,6 +243,8 @@
      </div>
     </div>
    </section>
+   <div class="clearer">
+   </div>
   </div>
  </div>
 </div>
diff --git a/tests/test_build/test_conditional_assets_no_tabs1_.html b/tests/test_build/test_conditional_assets_no_tabs1_.html
index b87a329..6e1cbc8 100644
--- a/tests/test_build/test_conditional_assets_no_tabs1_.html
+++ b/tests/test_build/test_conditional_assets_no_tabs1_.html
@@ -243,6 +243,8 @@
      </div>
     </div>
    </section>
+   <div class="clearer">
+   </div>
   </div>
  </div>
 </div>
diff --git a/tests/test_build/test_conditional_assets_no_tabs2_.html b/tests/test_build/test_conditional_assets_no_tabs2_.html
index b87a329..6e1cbc8 100644
--- a/tests/test_build/test_conditional_assets_no_tabs2_.html
+++ b/tests/test_build/test_conditional_assets_no_tabs2_.html
@@ -243,6 +243,8 @@
      </div>
     </div>
    </section>
+   <div class="clearer">
+   </div>
   </div>
  </div>
 </div>
diff --git a/tests/test_build/test_custom_lexer.html b/tests/test_build/test_custom_lexer.html
index 954a10a..a0af59a 100644
--- a/tests/test_build/test_custom_lexer.html
+++ b/tests/test_build/test_custom_lexer.html
@@ -19,6 +19,8 @@
      </div>
     </div>
    </div>
+   <div class="clearer">
+   </div>
   </div>
  </div>
 </div>
diff --git a/tests/test_build/test_disable_closing.html b/tests/test_build/test_disable_closing.html
index e245915..98ba6ef 100644
--- a/tests/test_build/test_disable_closing.html
+++ b/tests/test_build/test_disable_closing.html
@@ -37,6 +37,8 @@
      </p>
     </div>
    </div>
+   <div class="clearer">
+   </div>
   </div>
  </div>
 </div>
diff --git a/tests/test_build/test_disable_css_loading.html b/tests/test_build/test_disable_css_loading.html
index af63887..a5cc924 100644
--- a/tests/test_build/test_disable_css_loading.html
+++ b/tests/test_build/test_disable_css_loading.html
@@ -37,6 +37,8 @@
      </p>
     </div>
    </div>
+   <div class="clearer">
+   </div>
   </div>
  </div>
 </div>
diff --git a/tests/test_build/test_nested_markup.html b/tests/test_build/test_nested_markup.html
index 22588a9..b15d43e 100644
--- a/tests/test_build/test_nested_markup.html
+++ b/tests/test_build/test_nested_markup.html
@@ -207,6 +207,8 @@
      </div>
     </div>
    </section>
+   <div class="clearer">
+   </div>
   </div>
  </div>
 </div>
diff --git a/tests/test_build/test_no_tabs.html b/tests/test_build/test_no_tabs.html
index 6a0af85..26e2d70 100644
--- a/tests/test_build/test_no_tabs.html
+++ b/tests/test_build/test_no_tabs.html
@@ -4,6 +4,8 @@
    <p>
     There are no tabs here
    </p>
+   <div class="clearer">
+   </div>
   </div>
  </div>
 </div>
diff --git a/tests/test_build/test_other_with_assets.html b/tests/test_build/test_other_with_assets.html
index 85b55c4..c8ee530 100644
--- a/tests/test_build/test_other_with_assets.html
+++ b/tests/test_build/test_other_with_assets.html
@@ -19,6 +19,8 @@
      </div>
     </div>
    </div>
+   <div class="clearer">
+   </div>
   </div>
  </div>
 </div>