waft.framework_unit_tests.test_cli.test_download_warp module¶
Tests for WARP client download CLI with Flutter support.
- class waft.framework_unit_tests.test_cli.test_download_warp.TestDownloadWarpCLI¶
Bases:
objectTest the download WARP CLI commands.
- setup_method()¶
Set up test fixtures.
- test_catalog_url_generation_flutter(mock_get)¶
Test catalog URL generation uses Flutter URL for Flutter builds.
- test_client_command_direct_version_download(mock_subprocess, mock_head)¶
Test direct version download without release track.
- test_client_command_direct_version_download_with_previous_fails(mock_subprocess, mock_head)¶
Test that direct version download fails when –previous is used.
- test_client_command_download_success(mock_subprocess, mock_head, mock_get)¶
Test successful client download.
- test_client_command_requires_release_or_version()¶
Test that client command requires either –release or –version.
- test_client_command_uses_secure_subprocess(mock_subprocess, mock_head, mock_get)¶
Test that client command uses secure subprocess calls.
- test_direct_download_url_generation_flutter()¶
Test direct download URL generation for Flutter builds.
- test_info_command_flutter(mock_get)¶
Test info command for Flutter downloads.
- test_info_command_requires_release()¶
Test that info command requires –release.
- test_info_command_standard(mock_get)¶
Test info command for standard downloads.
- test_path_generation_uses_flutter_mapping()¶
Test that path generation uses Flutter platform mapping.
- class waft.framework_unit_tests.test_cli.test_download_warp.TestFlutterAnnotation¶
Bases:
objectTest the reusable Flutter CLI annotation.
- test_flutter_annotation_imports()¶
Test Flutter annotation can be imported and used.
- class waft.framework_unit_tests.test_cli.test_download_warp.TestGetDownloadUrls¶
Bases:
objectTest get_download_urls function.
- test_get_download_urls_default()¶
Test default is standard download URLs.
- test_get_download_urls_default_unique()¶
Test get_download_urls function with default parameters.
- test_get_download_urls_flutter()¶
Test Flutter download URLs and platform mapping.
- test_get_download_urls_flutter_unique()¶
Test get_download_urls function with Flutter=True.
- test_get_download_urls_standard()¶
Test standard download URLs and platform mapping.