(success, error_type, match)
| 103 | |
| 104 | @contextmanager |
| 105 | def cond_raises(success, error_type, match): |
| 106 | if success: |
| 107 | yield |
| 108 | else: |
| 109 | with pytest.raises(error_type, match=match): |
| 110 | yield |
| 111 | |
| 112 | |
| 113 | def do_test_dataset_encryption_decryption(table, extra_column_path=None): |