Explorar el Código

Exclude node and revision_read_statuses from test_content test

Guénaël Muller hace 6 años
padre
commit
3db440beee
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      tracim/tracim/tests/models/test_content_revision.py

+ 7 - 1
tracim/tracim/tests/models/test_content_revision.py Ver fichero

@@ -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