Просмотр исходного кода

Exclude node and revision_read_statuses from test_content test

Guénaël Muller 6 лет назад
Родитель
Сommit
3db440beee
1 измененных файлов: 7 добавлений и 1 удалений
  1. 7 1
      tracim/tracim/tests/models/test_content_revision.py

+ 7 - 1
tracim/tracim/tests/models/test_content_revision.py Просмотреть файл

@@ -13,7 +13,13 @@ from tracim.tests import TestStandard, BaseTest
13 13
 class TestContentRevision(BaseTest, TestStandard):
14 14
 
15 15
     def _new_from(self, revision):
16
-        excluded_columns = ('revision_id', '_sa_instance_state', 'depot_file')
16
+        excluded_columns = (
17
+            'revision_id',
18
+            '_sa_instance_state',
19
+            'depot_file',
20
+            'node',
21
+            'revision_read_statuses',
22
+        )
17 23
         revision_columns = [attr.key for attr in inspect(revision).attrs if not attr.key in excluded_columns]
18 24
         new_revision = ContentRevisionRO()
19 25