8000 fix encoding error · SnarkyPapi/server-client-python@395598f · GitHub
[go: up one dir, main page]

Skip to content

Commit 395598f

Browse files
committed
fix encoding error
1 parent 07030af commit 395598f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_metadata.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def setUp(self):
3636
self.server._auth_token = 'j80k54ll2lfMZ0tv97mlPvvSCRyD0DOM'
3737

3838
def test_metadata_query(self):
39-
with open(METADATA_QUERY_SUCCESS, 'rb') as f:
39+
with open(METADATA_QUERY_SUCCESS, 'r') as f:
4040
response_json = json.load(f)
4141
with requests_mock.mock() as m:
4242
m.post(self.baseurl, json=response_json)
@@ -47,7 +47,7 @@ def test_metadata_query(self):
4747
self.assertDictEqual(EXPECTED_DICT, datasources)
4848

4949
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:
5151
response_json = json.load(f)
5252
with requests_mock.mock() as m:
5353
m.post(self.baseurl, json=response_json)
@@ -59,7 +59,7 @@ def test_metadata_query_ignore_error(self):
5959
self.assertDictEqual(EXPECTED_DICT, datasources)
6060

6161
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:
6363
response_json = json.load(f)
6464
with requests_mock.mock() as m:
6565
m.post(self.baseurl, json=response_json)

0 commit comments

Comments
 (0)
0