0037-misc-fix-anomalous-backslash-in-string-pylint-error-.patch
tests/test_sector.py | ||
---|---|---|
172 | 172 | |
173 | 173 |
def test_sector_missing_column(sector): |
174 | 174 |
sector.csv_file = File(StringIO(CSV_MISSING_COLUMN), 'sectorization.csv') |
175 |
with pytest.raises(ValidationError, match='Invalid CSV file:.*missing column.*: parity\.'): |
|
175 |
with pytest.raises(ValidationError, match=r'Invalid CSV file:.*missing column.*: parity\.'):
|
|
176 | 176 |
sector.clean() |
177 |
with pytest.raises(ValidationError, match='missing column.*: parity\.'): |
|
177 |
with pytest.raises(ValidationError, match=r'missing column.*: parity\.'):
|
|
178 | 178 |
sector.save() |
179 | 179 |
assert sector.sector_set.count() == 4 # nothing change |
180 | 180 | |
181 |
- |