Orchestrata Ultimate › Tests › Reference › generated_recovery › test_verification_autofix_redis_fixes
Tests reference — tests/generated_recovery/test_verification_autofix_redis_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_redis_fixes.py
source · 38 tests · 514 lines
Auto-generated tests for: verification.autofix.redis_fixes
Covers: verification.autofix.redis_fixes
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestAutofixRedisHostBranches |
37 | Branch/exception tests for: verification.autofix.redis_fixes.autofix_redis_host |
| method | TestAutofixRedisHostBranches.test_L180_when_not_fname_startswith_test_or_fname_conft_true |
62 | Line 180: condition not (fname.startswith('test_') or fname == 'conftest.py') is True. |
| method | TestAutofixRedisHostBranches.test_L180_when_not_fname_startswith_test_or_fname_conft_false |
70 | Line 180: condition not (fname.startswith('test_') or fname == 'conftest.py') is False. |
| method | TestAutofixRedisHostBranches.test_L183_when_content_is_none_true |
78 | Line 183: condition content is None is True. |
| method | TestAutofixRedisHostBranches.test_L183_when_content_is_none_false |
86 | Line 183: condition content is None is False. |
| method | TestAutofixRedisHostBranches.test_L187_when_content_original_true |
94 | Line 187: condition content != original is True. |
| method | TestAutofixRedisHostBranches.test_L187_when_content_original_false |
102 | Line 187: condition content != original is False. |
| method | TestAutofixRedisHostBranches.test_L188_when_import_os_not_in_content_true |
110 | Line 188: condition 'import os' not in content is True. |
| method | TestAutofixRedisHostBranches.test_L188_when_import_os_not_in_content_false |
119 | Line 188: condition 'import os' not in content is False. |
| class | TestAutofixAioredisBranches |
129 | Branch/exception tests for: verification.autofix.redis_fixes.autofix_aioredis |
| method | TestAutofixAioredisBranches.test_L32_when_content_is_none_or_redis_not_in_content_true |
154 | Line 32: condition content is None or 'redis' not in content is True. |
| method | TestAutofixAioredisBranches.test_L32_when_content_is_none_or_redis_not_in_content_false |
163 | Line 32: condition content is None or 'redis' not in content is False. |
| method | TestAutofixAioredisBranches.test_L37_when_content_original_true |
172 | Line 37: condition content != original is True. |
| method | TestAutofixAioredisBranches.test_L37_when_content_original_false |
180 | Line 37: condition content != original is False. |
| class | TestAutofixSyncRedisBranches |
189 | Branch/exception tests for: verification.autofix.redis_fixes.autofix_sync_redis |
| method | TestAutofixSyncRedisBranches.test_L86_when_content_is_none_true |
216 | Line 86: condition content is None is True. |
| method | TestAutofixSyncRedisBranches.test_L86_when_content_is_none_false |
224 | Line 86: condition content is None is False. |
| method | TestAutofixSyncRedisBranches.test_L88_when_redis_asyncio_in_content_true |
232 | Line 88: condition 'redis.asyncio' in content is True. |
| method | TestAutofixSyncRedisBranches.test_L88_when_redis_asyncio_in_content_false |
241 | Line 88: condition 'redis.asyncio' in content is False. |
| method | TestAutofixSyncRedisBranches.test_L90_when_not_re_search_import_redis_b_content_re__true |
250 | Line 90: condition not re.search('^import redis\b', content, re.MULTILINE) is True. |
| method | TestAutofixSyncRedisBranches.test_L90_when_not_re_search_import_redis_b_content_re__false |
258 | Line 90: condition not re.search('^import redis\b', content, re.MULTILINE) is False. |
| method | TestAutofixSyncRedisBranches.test_L96_when_redis_redis_not_in_content_true |
266 | Line 96: condition 'redis.Redis(' not in content is True. |
| method | TestAutofixSyncRedisBranches.test_L96_when_redis_redis_not_in_content_false |
275 | Line 96: condition 'redis.Redis(' not in content is False. |
| method | TestAutofixSyncRedisBranches.test_L100_when_content_original_true |
284 | Line 100: condition content != original is True. |
| method | TestAutofixSyncRedisBranches.test_L100_when_content_original_false |
292 | Line 100: condition content != original is False. |
| class | TestAutofixRedisDecodeBranches |
301 | Branch/exception tests for: verification.autofix.redis_fixes.autofix_redis_decode |
| method | TestAutofixRedisDecodeBranches.test_L145_when_content_is_none_true |
328 | Line 145: condition content is None is True. |
| method | TestAutofixRedisDecodeBranches.test_L145_when_content_is_none_false |
336 | Line 145: condition content is None is False. |
| method | TestAutofixRedisDecodeBranches.test_L147_when_redis_not_in_content_true |
344 | Line 147: condition 'Redis(' not in content is True. |
| method | TestAutofixRedisDecodeBranches.test_L147_when_redis_not_in_content_false |
353 | Line 147: condition 'Redis(' not in content is False. |
| method | TestAutofixRedisDecodeBranches.test_L149_when_decode_responses_in_content_true |
362 | Line 149: condition 'decode_responses' in content is True. |
| method | TestAutofixRedisDecodeBranches.test_L149_when_decode_responses_in_content_false |
371 | Line 149: condition 'decode_responses' in content is False. |
| method | TestAutofixRedisDecodeBranches.test_L161_when_content_original_true |
380 | Line 161: condition content != original is True. |
| method | TestAutofixRedisDecodeBranches.test_L161_when_content_original_false |
388 | Line 161: condition content != original is False. |
| class | TestAutofixXaddDictBranches |
397 | Branch/exception tests for: verification.autofix.redis_fixes.autofix_xadd_dict |
| method | TestAutofixXaddDictBranches.test_L228_when_content_is_none_or_xadd_not_in_content_l_true |
422 | Line 228: condition content is None or 'xadd' not in content.lower() is True. |
| method | TestAutofixXaddDictBranches.test_L228_when_content_is_none_or_xadd_not_in_content_l_false |
431 | Line 228: condition content is None or 'xadd' not in content.lower() is False. |
| method | TestAutofixXaddDictBranches.test_L241_when_content_original_true |
440 | Line 241: condition content != original is True. |
| method | TestAutofixXaddDictBranches.test_L241_when_content_original_false |
448 | Line 241: condition content != original is False. |
| class | TestAutofixHsetDictBranches |
457 | Branch/exception tests for: verification.autofix.redis_fixes.autofix_hset_dict |
| method | TestAutofixHsetDictBranches.test_L260_when_content_is_none_or_hset_not_in_content_l_true |
482 | Line 260: condition content is None or 'hset' not in content.lower() is True. |
| method | TestAutofixHsetDictBranches.test_L260_when_content_is_none_or_hset_not_in_content_l_false |
491 | Line 260: condition content is None or 'hset' not in content.lower() is False. |
| method | TestAutofixHsetDictBranches.test_L274_when_content_original_true |
500 | Line 274: condition content != original is True. |
| method | TestAutofixHsetDictBranches.test_L274_when_content_original_false |
508 | Line 274: condition content != original is False. |