|
8 | 8 | import pytest
|
9 | 9 |
|
10 | 10 | # this package
|
| 11 | +from domdf_python_tools import words |
11 | 12 | from domdf_python_tools.paths import PathPlus
|
12 | 13 | from domdf_python_tools.stringlist import StringList
|
13 | 14 | from domdf_python_tools.words import DOUBLESTRUCK_LETTERS, alpha_sort, get_random_word, get_words_list
|
14 |
| -from domdf_python_tools import words |
15 | 15 |
|
16 | 16 |
|
17 | 17 | @pytest.mark.parametrize(
|
@@ -99,7 +99,7 @@ def test_alpha_sort():
|
99 | 99 | (123.45, "123.45"),
|
100 | 100 | ([123.45], "[123.45]"),
|
101 | 101 | ({123.45}, "{123.45}"),
|
102 |
| - ((123.45,), "(123.45,)"), |
| 102 | + ((123.45, ), "(123.45,)"), |
103 | 103 | (None, ''),
|
104 | 104 | (pathlib.Path('.'), '.'),
|
105 | 105 | (PathPlus('.'), '.'),
|
@@ -128,14 +128,14 @@ def test_word_join():
|
128 | 128 |
|
129 | 129 | assert words.word_join(()) == ''
|
130 | 130 |
|
131 |
| - assert words.word_join(("bob",)) == "bob" |
| 131 | + assert words.word_join(("bob", )) == "bob" |
132 | 132 | assert words.word_join(("bob", "alice")) == "bob and alice"
|
133 | 133 | assert words.word_join(("bob", "alice", "fred")) == "bob, alice and fred"
|
134 | 134 |
|
135 |
| - assert words.word_join(("bob",), use_repr=True) == "'bob'" |
| 135 | + assert words.word_join(("bob", ), use_repr=True) == "'bob'" |
136 | 136 | assert words.word_join(("bob", "alice"), use_repr=True) == "'bob' and 'alice'"
|
137 | 137 | assert words.word_join(("bob", "alice", "fred"), use_repr=True) == "'bob', 'alice' and 'fred'"
|
138 | 138 |
|
139 |
| - assert words.word_join(("bob",), use_repr=True, oxford=True) == "'bob'" |
| 139 | + assert words.word_join(("bob", ), use_repr=True, oxford=True) == "'bob'" |
140 | 140 | assert words.word_join(("bob", "alice"), use_repr=True, oxford=True) == "'bob' and 'alice'"
|
141 | 141 | assert words.word_join(("bob", "alice", "fred"), use_repr=True, oxford=True) == "'bob', 'alice', and 'fred'"
|
0 commit comments