Guénaël Muller 6 years ago
parent
commit
b539de2bae
2 changed files with 4 additions and 4 deletions
  1. 1 1
      tracim/tracim/lib/content.py
  2. 3 3
      tracim/tracim/tests/library/test_content_api.py

+ 1 - 1
tracim/tracim/lib/content.py View File

908
         return content
908
         return content
909
 
909
 
910
     def copy_children(self, origin_content: Content, new_content: Content):
910
     def copy_children(self, origin_content: Content, new_content: Content):
911
-       for child in origin_content.children:
911
+        for child in origin_content.children:
912
             self.copy(child, new_content)
912
             self.copy(child, new_content)
913
 
913
 
914
     def move_recursively(self, item: Content,
914
     def move_recursively(self, item: Content,

+ 3 - 3
tracim/tracim/tests/library/test_content_api.py View File

428
         assert text_file != text_file_copy
428
         assert text_file != text_file_copy
429
         assert text_file_copy.content_id != text_file.content_id
429
         assert text_file_copy.content_id != text_file.content_id
430
         assert text_file_copy.workspace_id == workspace2.workspace_id
430
         assert text_file_copy.workspace_id == workspace2.workspace_id
431
-        assert text_file_copy.depot_file.file.read() == text_file.depot_file.file.read()
431
+        assert text_file_copy.depot_file.file.read() == text_file.depot_file.file.read()   # nopep8
432
         assert text_file_copy.depot_file.path != text_file.depot_file.path
432
         assert text_file_copy.depot_file.path != text_file.depot_file.path
433
         assert text_file_copy.label == 'test_file_copy'
433
         assert text_file_copy.label == 'test_file_copy'
434
         assert text_file_copy.type == text_file.type
434
         assert text_file_copy.type == text_file.type
516
         assert text_file != text_file_copy
516
         assert text_file != text_file_copy
517
         assert text_file_copy.content_id != text_file.content_id
517
         assert text_file_copy.content_id != text_file.content_id
518
         assert text_file_copy.workspace_id == workspace2.workspace_id
518
         assert text_file_copy.workspace_id == workspace2.workspace_id
519
-        assert text_file_copy.depot_file.file.read() == text_file.depot_file.file.read()
519
+        assert text_file_copy.depot_file.file.read() == text_file.depot_file.file.read()  # nopep8
520
         assert text_file_copy.depot_file.path != text_file.depot_file.path
520
         assert text_file_copy.depot_file.path != text_file.depot_file.path
521
         assert text_file_copy.label == text_file.label
521
         assert text_file_copy.label == text_file.label
522
         assert text_file_copy.type == text_file.type
522
         assert text_file_copy.type == text_file.type
598
         assert text_file != text_file_copy
598
         assert text_file != text_file_copy
599
         assert text_file_copy.content_id != text_file.content_id
599
         assert text_file_copy.content_id != text_file.content_id
600
         assert text_file_copy.workspace_id == workspace.workspace_id
600
         assert text_file_copy.workspace_id == workspace.workspace_id
601
-        assert text_file_copy.depot_file.file.read() == text_file.depot_file.file.read()
601
+        assert text_file_copy.depot_file.file.read() == text_file.depot_file.file.read()  # nopep8
602
         assert text_file_copy.depot_file.path != text_file.depot_file.path
602
         assert text_file_copy.depot_file.path != text_file.depot_file.path
603
         assert text_file_copy.label == 'test_file_copy'
603
         assert text_file_copy.label == 'test_file_copy'
604
         assert text_file_copy.type == text_file.type
604
         assert text_file_copy.type == text_file.type