Orchestrata Ultimate › Tests › Reference › generated_recovery › test_verification_autofix_import_fixes

Tests reference — tests/generated_recovery/test_verification_autofix_import_fixes.py

Module of tests/generated_recovery, split out because the directory page would be too large.

Prose pending.

tests/generated_recovery/test_verification_autofix_import_fixes.py

source · 17 tests · 279 lines

Auto-generated tests for: verification.autofix.import_fixes

Covers: verification.autofix.import_fixes

Kind Name Line Description
class TestAutofixRelativeImportsBranches 35 Branch/exception tests for: verification.autofix.import_fixes.autofix_relative_imports
method TestAutofixRelativeImportsBranches.test_L54_when_not_pkg_name_true 61 Line 54: condition not pkg_name is True.
method TestAutofixRelativeImportsBranches.test_L54_when_not_pkg_name_false 69 Line 54: condition not pkg_name is False.
method TestAutofixRelativeImportsBranches.test_L58_when_venv_in_fpath_or_pycache_in_fpath_true 77 Line 58: condition '.venv' in fpath or '__pycache__' in fpath is True.
method TestAutofixRelativeImportsBranches.test_L58_when_venv_in_fpath_or_pycache_in_fpath_false 87 Line 58: condition '.venv' in fpath or '__pycache__' in fpath is False.
method TestAutofixRelativeImportsBranches.test_L61_when_content_is_none_true 97 Line 61: condition content is None is True.
method TestAutofixRelativeImportsBranches.test_L61_when_content_is_none_false 105 Line 61: condition content is None is False.
method TestAutofixRelativeImportsBranches.test_L74_when_content_original_true 113 Line 74: condition content != original is True.
method TestAutofixRelativeImportsBranches.test_L74_when_content_original_false 121 Line 74: condition content != original is False.
class TestAutofixMissingStdlibImportsBranches 130 Branch/exception tests for: verification.autofix.import_fixes.autofix_missing_stdlib_imports
method TestAutofixMissingStdlibImportsBranches.test_L147_when_content_is_none_true 155 Line 147: condition content is None is True.
method TestAutofixMissingStdlibImportsBranches.test_L147_when_content_is_none_false 163 Line 147: condition content is None is False.
method TestAutofixMissingStdlibImportsBranches.test_L151_when_content_original_true 171 Line 151: condition content != original is True.
method TestAutofixMissingStdlibImportsBranches.test_L151_when_content_original_false 179 Line 151: condition content != original is False.
class TestAutofixMissingBarenameImportsBranches 188 Branch/exception tests for: verification.autofix.import_fixes.autofix_missing_barename_imports
method TestAutofixMissingBarenameImportsBranches.test_L197_when_content_is_none_true 213 Line 197: condition content is None is True.
method TestAutofixMissingBarenameImportsBranches.test_L197_when_content_is_none_false 221 Line 197: condition content is None is False.
method TestAutofixMissingBarenameImportsBranches.test_L201_when_content_original_true 229 Line 201: condition content != original is True.
method TestAutofixMissingBarenameImportsBranches.test_L201_when_content_original_false 237 Line 201: condition content != original is False.
class TestAutofixImportOrderBranches 246 Branch/exception tests for: verification.autofix.import_fixes.autofix_import_order
method TestAutofixImportOrderBranches.test_handles_TimeoutExpired_L122 273 Line 122: (subprocess.TimeoutExpired, FileNotFoundError) handler — suppressed.