File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import os
2+ from http import HTTPStatus
23from collections import OrderedDict
34
45import pytest
@@ -42,16 +43,16 @@ def test_tsv_stdlib_exception_raises(self):
4243 with open (os .path .join (BASE , 'files' , 'invalid.tsv' )) as fp :
4344 with pytest .raises (EmptyTableError ) as e :
4445 stdlib_tools .tsv_stdlib (fp )
45- assert e .value .code == 400
46+ assert e .value .code == HTTPStatus . BAD_REQUEST
4647
4748 def test_csv_stdlib_exception_raises (self ):
4849 with open (os .path .join (BASE , 'files' , 'invalid.csv' )) as fp :
4950 with pytest .raises (EmptyTableError ) as e :
5051 stdlib_tools .tsv_stdlib (fp )
51- assert e .value .code == 400
52+ assert e .value .code == HTTPStatus . BAD_REQUEST
5253
5354 def test_csv_stdlib_other_exception_raises (self ):
5455 with open (os .path .join (BASE , 'files' , 'invalid_null.csv' )) as fp :
5556 with pytest .raises (TabularRendererError ) as e :
5657 stdlib_tools .tsv_stdlib (fp )
57- assert e .value .code == 400
58+ assert e .value .code == HTTPStatus . BAD_REQUEST
You can’t perform that action at this time.
0 commit comments