File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
tests/integration/buildcmd Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 11import logging
2+ import os
23import pathlib
34from typing import Set
45from unittest import skipIf
@@ -621,3 +622,22 @@ def test_unsupported_runtime(self):
621622 self .assertEqual (1 , process_execute .process .returncode )
622623
623624 self .assertIn ("Build Failed" , str (process_execute .stdout ))
625+
626+
627+ class TestBuildCommand_PythonUv (BuildIntegBase ):
628+ def test_build_python_with_uv_experimental_flag (self ):
629+ # Set experimental flag
630+ os .environ ["SAM_CLI_BETA_UV_PACKAGE_MANAGER" ] = "true"
631+
632+ try :
633+ overrides = {"Runtime" : "python3.11" , "CodeUri" : "Python" }
634+ cmdlist = self .get_command_list (parameter_overrides = overrides )
635+
636+ command_result = run_command (cmdlist , cwd = self .working_dir )
637+
638+ # Verify build succeeded
639+ self .assertEqual (command_result .process .returncode , 0 )
640+
641+ finally :
642+ # Clean up environment
643+ os .environ .pop ("SAM_CLI_BETA_UV_PACKAGE_MANAGER" , None )
You can’t perform that action at this time.
0 commit comments