()
| 37 | |
| 38 | |
| 39 | def test_unique_fail(): |
| 40 | msg = "TextField can't be indexed, consider CharField" |
| 41 | with pytest.raises(ConfigurationError, match=msg): |
| 42 | with pytest.warns( |
| 43 | DeprecationWarning, match="`index` is deprecated, please use `db_index` instead" |
| 44 | ): |
| 45 | TextField(index=True) |
| 46 | with pytest.raises(ConfigurationError, match=msg): |
| 47 | TextField(db_index=True) |
| 48 | |
| 49 | |
| 50 | def test_index_fail(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…