@@ -36,7 +36,7 @@ def setUp(self):
36
36
self .server ._auth_token = 'j80k54ll2lfMZ0tv97mlPvvSCRyD0DOM'
37
37
38
38
def test_metadata_query (self ):
39
- with open (METADATA_QUERY_SUCCESS , 'rb ' ) as f :
39
+ with open (METADATA_QUERY_SUCCESS , 'r ' ) as f :
40
40
response_json = json .load (f )
41
41
with requests_mock .mock () as m :
42
42
m .post (self .baseurl , json = response_json )
@@ -47,7 +47,7 @@ def test_metadata_query(self):
47
47
self .assertDictEqual (EXPECTED_DICT , datasources )
48
48
49
49
def test_metadata_query_ignore_error (self ):
50
- with open (METADATA_QUERY_ERROR , 'rb ' ) as f :
50
+ with open (METADATA_QUERY_ERROR , 'r ' ) as f :
51
51
response_json = json .load (f )
52
52
with requests_mock .mock () as m :
53
53
m .post (self .baseurl , json = response_json )
@@ -59,7 +59,7 @@ def test_metadata_query_ignore_error(self):
59
59
self .assertDictEqual (EXPECTED_DICT , datasources )
60
60
61
61
def test_metadata_query_abort_on_error (self ):
62
- with open (METADATA_QUERY_ERROR , 'rb ' ) as f :
62
+ with open (METADATA_QUERY_ERROR , 'r ' ) as f :
63
63
response_json = json .load (f )
64
64
with requests_mock .mock () as m :
65
65
m .post (self .baseurl , json = response_json )
0 commit comments