File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -513,11 +513,11 @@ def test_add_files_already_exist_is_updated(self):
513513 # change file but add a filename already used, change scan_id as well
514514 with open (os .path .join (os .path .dirname (__file__ ), "annex1.pdf" ), "rb" ) as f :
515515 annex1 .file = NamedBlobFile (data = f .read (), filename = u"new_annex0.pdf" , contentType = "application/pdf" )
516- annex1 .scan_id = str ( int ( annex1 . scan_id ) + 1 )
516+ annex1 .scan_id = "012345600000002"
517517 notify (ObjectModifiedEvent (annex1 ))
518518 self .assertEqual (session ["files" ][1 ]["filename" ], "new_annex0-1.pdf" )
519519 self .assertEqual (session ["files" ][1 ]["scan_id" ], "012345600000002" )
520- # just to check, remove annex1
520+ # just to check, remove annex0
521521 remove_files_from_session ((annex0_uid ,))
522522 self .assertEqual (session ["size" ], 6968 )
523523
You can’t perform that action at this time.
0 commit comments