瀏覽代碼

Exclude node and revision_read_statuses from test_content test

Guénaël Muller 6 年之前
父節點
當前提交
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