Skip to content

Commit ca174ca

Browse files
committed
Fix tests
1 parent df9d3e9 commit ca174ca

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

setup.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
[aliases]
2-
test=pytest

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ def read_file(fname):
2929
'mkdocs>=0.17',
3030
'mkdocs'
3131
],
32-
test_requires=[
33-
"unittest"
34-
],
3532
classifiers=[
3633
'Development Status :: 5 - Production/Stable',
3734
'Intended Audience :: Developers',
@@ -50,5 +47,6 @@ def read_file(fname):
5047
'codeinclude = codeinclude.plugin:CodeIncludePlugin'
5148
]
5249
},
53-
test_suite="tests"
50+
test_suite="nose.collector",
51+
tests_require=["nose"]
5452
)

tests/__init__.py

Whitespace-only changes.

tests/codeinclude/__init__.py

Whitespace-only changes.
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@
1111
"""
1212

1313
def test_lines():
14-
result = select(CODE_BLOCK_EXAMPLE, lines="1,5")
14+
result = select(CODE_BLOCK_EXAMPLE, lines="2,6")
1515
assert result == ("this is the first line\n"
16-
"this is a trailing line")
16+
"\n"
17+
"⋯\n"
18+
"\n"
19+
"this is a trailing line\n")
1720

1821
def test_inside_block():
1922
result = select(CODE_BLOCK_EXAMPLE, inside_block="blockstarter")
20-
assert result == "block content"
23+
assert result == " block content\n"
2124

2225
def test_whole_block():
2326
result = select(CODE_BLOCK_EXAMPLE, block="blockstarter")
2427
assert result == ("blockstarter {\n"
2528
" block content\n"
26-
"}")
29+
"}\n")

0 commit comments

Comments
 (0)