-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NXDRIVE-2711: Show that upload is still alive for very large files
- Loading branch information
1 parent
7524f02
commit bd016cd
Showing
4 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from unittest.mock import Mock | ||
from uuid import uuid4 | ||
|
||
from nuxeo.models import FileBlob | ||
|
||
|
||
def test_link_blob_to_doc(baseuploader, upload, tmp_path): | ||
file = tmp_path / f"{uuid4()}.txt" | ||
file.write_bytes(b"content") | ||
|
||
baseuploader.dao = Mock() | ||
baseuploader._transfer_autoType_file = Mock() | ||
|
||
baseuploader.link_blob_to_doc( | ||
baseuploader, "Filemanager.Import", upload, FileBlob(str(file)), True | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters