55
66from file_utils import load_linked_resources , store_response_files
77from plain2code_exceptions import UnsupportedBase64Content , UnsupportedResourceType
8- from plain2code_utils import MIN_BASE64_BLOB_LENGTH
8+ from plain2code_utils import MAX_BASE64_BLOB_LENGTH
99
1010
1111@pytest .fixture
@@ -45,7 +45,7 @@ def test_load_linked_resources_missing_file_raises_file_not_found(template_dir):
4545def test_load_linked_resources_base64_blob_raises (template_dir ):
4646 file_path = os .path .join (template_dir , "request.txt" )
4747 with open (file_path , "w" ) as f :
48- f .write ("curl -d 'selfie_image=" + "A" * (MIN_BASE64_BLOB_LENGTH + 100 ) + "'" )
48+ f .write ("curl -d 'selfie_image=" + "A" * (MAX_BASE64_BLOB_LENGTH + 100 ) + "'" )
4949
5050 with pytest .raises (UnsupportedBase64Content ) as exc_info :
5151 load_linked_resources ([template_dir ], [{"text" : "Request" , "target" : "request.txt" }], "my_thing" )
@@ -57,7 +57,7 @@ def test_load_linked_resources_base64_blob_raises(template_dir):
5757def test_load_linked_resources_small_base64_allowed (template_dir ):
5858 file_path = os .path .join (template_dir , "token.txt" )
5959 with open (file_path , "w" ) as f :
60- f .write ("token=" + "A" * (MIN_BASE64_BLOB_LENGTH - 100 ))
60+ f .write ("token=" + "A" * (MAX_BASE64_BLOB_LENGTH - 100 ))
6161
6262 result = load_linked_resources ([template_dir ], [{"text" : "Token" , "target" : "token.txt" }], "my_thing" )
6363
0 commit comments