Mirroring: Fix failing tests

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2018-12-14 02:54:54 -04:00
parent 108744cdd5
commit 46c2192d9a
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ class IndexFilesystem(Operations):
return queryset.annotate(
clean_value=Trim(
Func(
F('value'), Value('\r\n'), Value(' '), function='replace'
F('value'), Value('\n'), Value(' '), function='replace'
),
)
)

View File

@@ -151,7 +151,7 @@ class IndexFilesystemTestCase(DocumentIndexingTestMixin, DocumentTestMixin, Base
self.assertEqual(
list(
index_filesystem.readdir(
'/{}'.format(TEST_NODE_EXPRESSION), ''
'/', ''
)
)[2:], []
)