Skip to content

Commit fb170b8

Browse files
authored
Update tests to something in our control (#30)
1 parent 717af45 commit fb170b8

5 files changed

Lines changed: 11 additions & 8 deletions

File tree

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
-e .
22
black
3+
certifi
34
pytest==6.2.5
45
wheel==0.40.0

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from sphinx.application import Sphinx
33
from sphinx.testing.path import path
44

5-
65
pytest_plugins = "sphinx.testing.fixtures"
76

87

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
.. rli:: http://example.com/
2-
:lines: 4-4
1+
Test Documentation
2+
3+
.. rli:: https://raw.githubusercontent.com/wpilibsuite/sphinxext-remoteliteralinclude/refs/heads/main/README.md
4+
:lines: 1-1
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
.. rli:: http://example.com/
2-
:lines: 4-4
1+
Test Documentation
2+
3+
.. rli:: https://raw.githubusercontent.com/wpilibsuite/sphinxext-remoteliteralinclude/refs/heads/main/README.md
4+
:lines: 1-1

tests/test_options.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from sphinx.config import Config
66
from sphinxext.remoteliteralinclude import RemoteLiteralIncludeReader
77

8-
98
DUMMY_CONFIG = Config({}, {})
109

1110

@@ -15,7 +14,7 @@ def test_simple_short(app: Sphinx):
1514

1615
content = read_text(app)
1716

18-
html = '<span class="n">Example</span> <span class="n">Domain</span>'
17+
html = "sphinxext-remoteliteralinclude"
1918

2019
assert html in content
2120

@@ -26,7 +25,7 @@ def test_simple_full(app: Sphinx):
2625

2726
content = read_text(app)
2827

29-
html = '<span class="n">Example</span> <span class="n">Domain</span>'
28+
html = "sphinxext-remoteliteralinclude"
3029

3130
assert html in content
3231

0 commit comments

Comments
 (0)