File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3212,6 +3212,7 @@ def test_client_project_sync_retry(mc):
32123212 mc .sync_project (project_dir )
32133213 assert mock_push_project_async .call_count == 2
32143214
3215+
32153216def test_push_file_limits (mc ):
32163217 test_project = "test_push_file_limits"
32173218 project = API_USER + "/" + test_project
@@ -3224,7 +3225,7 @@ def test_push_file_limits(mc):
32243225 with patch ("mergin.client_push.MAX_UPLOAD_VERSIONED_SIZE" , 1 ):
32253226 with pytest .raises (ClientError , match = f"base.gpkg to upload exceeds the maximum allowed size of { 1 / 1024 ** 3 } " ):
32263227 mc .push_project (project_dir )
3227-
3228+
32283229 shutil .copy (os .path .join (TEST_DATA_DIR , "test.txt" ), project_dir )
32293230 with patch ("mergin.client_push.MAX_UPLOAD_MEDIA_SIZE" , 1 ):
32303231 with pytest .raises (ClientError , match = f"test.txt to upload exceeds the maximum allowed size of { 1 / 1024 ** 3 } " ):
You can’t perform that action at this time.
0 commit comments