Browse Source

Exclude node and revision_read_statuses from test_content test

Guénaël Muller 6 years ago
parent
commit
3db440beee
1 changed files with 7 additions and 1 deletions
  1. 7 1
      tracim/tracim/tests/models/test_content_revision.py

+ 7 - 1
tracim/tracim/tests/models/test_content_revision.py View File

13
 class TestContentRevision(BaseTest, TestStandard):
13
 class TestContentRevision(BaseTest, TestStandard):
14
 
14
 
15
     def _new_from(self, revision):
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
         revision_columns = [attr.key for attr in inspect(revision).attrs if not attr.key in excluded_columns]
23
         revision_columns = [attr.key for attr in inspect(revision).attrs if not attr.key in excluded_columns]
18
         new_revision = ContentRevisionRO()
24
         new_revision = ContentRevisionRO()
19
 
25