Guénaël Muller 6 anni fa
parent
commit
b539de2bae

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

@@ -908,7 +908,7 @@ class ContentApi(object):
908 908
         return content
909 909
 
910 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 912
             self.copy(child, new_content)
913 913
 
914 914
     def move_recursively(self, item: Content,

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

@@ -428,7 +428,7 @@ class TestContentApi(BaseTest, TestStandard):
428 428
         assert text_file != text_file_copy
429 429
         assert text_file_copy.content_id != text_file.content_id
430 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 432
         assert text_file_copy.depot_file.path != text_file.depot_file.path
433 433
         assert text_file_copy.label == 'test_file_copy'
434 434
         assert text_file_copy.type == text_file.type
@@ -516,7 +516,7 @@ class TestContentApi(BaseTest, TestStandard):
516 516
         assert text_file != text_file_copy
517 517
         assert text_file_copy.content_id != text_file.content_id
518 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 520
         assert text_file_copy.depot_file.path != text_file.depot_file.path
521 521
         assert text_file_copy.label == text_file.label
522 522
         assert text_file_copy.type == text_file.type
@@ -598,7 +598,7 @@ class TestContentApi(BaseTest, TestStandard):
598 598
         assert text_file != text_file_copy
599 599
         assert text_file_copy.content_id != text_file.content_id
600 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 602
         assert text_file_copy.depot_file.path != text_file.depot_file.path
603 603
         assert text_file_copy.label == 'test_file_copy'
604 604
         assert text_file_copy.type == text_file.type