Mirroring: Fix failing tests
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
@@ -37,7 +37,7 @@ class IndexFilesystem(Operations):
|
|||||||
return queryset.annotate(
|
return queryset.annotate(
|
||||||
clean_value=Trim(
|
clean_value=Trim(
|
||||||
Func(
|
Func(
|
||||||
F('value'), Value('\r\n'), Value(' '), function='replace'
|
F('value'), Value('\n'), Value(' '), function='replace'
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ class IndexFilesystemTestCase(DocumentIndexingTestMixin, DocumentTestMixin, Base
|
|||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
list(
|
list(
|
||||||
index_filesystem.readdir(
|
index_filesystem.readdir(
|
||||||
'/{}'.format(TEST_NODE_EXPRESSION), ''
|
'/', ''
|
||||||
)
|
)
|
||||||
)[2:], []
|
)[2:], []
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user