From 46c2192d9a29c74aafbf482dedd7a6aacf87116e Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Fri, 14 Dec 2018 02:54:54 -0400 Subject: [PATCH] Mirroring: Fix failing tests Signed-off-by: Roberto Rosario --- mayan/apps/mirroring/filesystems.py | 2 +- mayan/apps/mirroring/tests/test_filesystems.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mayan/apps/mirroring/filesystems.py b/mayan/apps/mirroring/filesystems.py index 89bd5f9827..49fd4a5946 100644 --- a/mayan/apps/mirroring/filesystems.py +++ b/mayan/apps/mirroring/filesystems.py @@ -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' ), ) ) diff --git a/mayan/apps/mirroring/tests/test_filesystems.py b/mayan/apps/mirroring/tests/test_filesystems.py index a4f4676256..d9df86416e 100644 --- a/mayan/apps/mirroring/tests/test_filesystems.py +++ b/mayan/apps/mirroring/tests/test_filesystems.py @@ -151,7 +151,7 @@ class IndexFilesystemTestCase(DocumentIndexingTestMixin, DocumentTestMixin, Base self.assertEqual( list( index_filesystem.readdir( - '/{}'.format(TEST_NODE_EXPRESSION), '' + '/', '' ) )[2:], [] )