Skip to content

Commit 739d467

Browse files
committed
Normalize file endings and update path usage in tests
Added missing newline at end of several test files and switched from os.path to pathlib in conftest.py for improved path handling. Also updated some test HTML content to fix encoding issues.
1 parent 18b0e83 commit 739d467

12 files changed

Lines changed: 16 additions & 16 deletions

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import shutil
22
import pytest
33

4-
from os import path
4+
from pathlib import Path
55

66
pytest_plugins = "sphinx.testing.fixtures"
77

88

99
@pytest.fixture
1010
def rootdir(tmpdir):
11-
src = path(__file__).parent.abspath() / "books"
11+
src = Path(__file__).parent / "books"
1212
dst = tmpdir.join("books")
1313
shutil.copytree(src, dst)
14-
books = path(dst)
14+
books = Path(dst)
1515
yield books
1616
shutil.rmtree(dst)
1717

tests/test_html/algorithm/_algo_labeled_titled_with_classname.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
<section class="algorithm-content" id="proof-content">
44
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
55
</section>
6-
</div>
6+
</div>

tests/test_html/algorithm/_algo_nonumber.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
<section class="algorithm-content" id="proof-content">
44
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
55
</section>
6-
</div>
6+
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<p>referencing with number <a class="reference internal" href="_algo_labeled_titled_with_classname.html#test-algo-label">Algorithm 1</a>.</p>
1+
<p>referencing with number <a class="reference internal" href="_algo_labeled_titled_with_classname.html#test-algo-label">Algorithm 1</a>.</p>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<p>referencing with text: <a class="reference internal" href="_algo_labeled_titled_with_classname.html#test-algo-label">text</a>.</p>
1+
<p>referencing with text: <a class="reference internal" href="_algo_labeled_titled_with_classname.html#test-algo-label">text</a>.</p>

tests/test_html/proof/_proof_no_classname.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
<p>Proof. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
33
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
44
<p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
5-
</div>
5+
</div>

tests/test_html/proof/_proof_with_argument_content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
<p>Proof. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
33
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
44
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
5-
</div>
5+
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<div class="proof test-proof admonition" id="proof">
22
<p>Proof. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
3-
</div>
3+
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="proof admonition" id="proof">
22
<p>Proof. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut</p>
33
<div class="math notranslate nohighlight" id="equation-label1">
4-
<span class="eqno">(1)<a class="headerlink" href="#equation-label1" title="Link to this equation"></a></span>\[P_t(x, y) = \mathbb 1\{x = y\} + t Q(x, y) + o(t)\]</div>
5-
</div>
4+
<span class="eqno">(1)<a class="headerlink" href="#equation-label1" title="Link to this equation"></a></span>\[P_t(x, y) = \mathbb 1\{x = y\} + t Q(x, y) + o(t)\]</div>
5+
</div>

tests/test_html/proof/_proof_with_unlabeled_math.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
<p>Proof. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut</p>
33
<div class="math notranslate nohighlight">
44
\[P_t(x, y) = \mathbb 1\{x = y\} + t Q(x, y) + o(t)\]</div>
5-
</div>
5+
</div>

0 commit comments

Comments
 (0)