Skip to content

Commit a0b6e48

Browse files
committed
Fix tests
1 parent c7df1da commit a0b6e48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

about_code_tool/tests/test_about.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ def test_collect_can_collect_a_directory_tree(self):
152152
def test_collect_can_collect_a_single_file(self):
153153
test_file = ('about_code_tool/tests/testdata/thirdparty'
154154
'/django_snippets_2413.ABOUT')
155-
expected = ['about_code_tool/tests/testdata/thirdparty'
156-
'/django_snippets_2413.ABOUT']
155+
expected = [os.path.abspath('about_code_tool/tests/testdata/thirdparty'
156+
'/django_snippets_2413.ABOUT')]
157157
result = about.Collector.collect(test_file)
158158
if on_windows:
159159
expected = [to_posix(UNC_PREFIX + os.path.abspath('about_code_tool/tests/testdata/thirdparty'
@@ -162,8 +162,8 @@ def test_collect_can_collect_a_single_file(self):
162162

163163
def test_collect_can_collect_a_long_directory_tree(self):
164164
test_dir = 'about_code_tool/tests/testdata/longpath/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/'
165-
expected = [('about_code_tool/tests/testdata/longpath/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1'
166-
'/non-supported_date_format.ABOUT')]
165+
expected = [os.path.abspath(('about_code_tool/tests/testdata/longpath/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1/longpath1'
166+
'/non-supported_date_format.ABOUT'))]
167167
result = about.Collector.collect(test_dir)
168168
if on_windows:
169169
# For some reasons, the os.path.abspath doesn't work if I have long

0 commit comments

Comments
 (0)