Skip to content

Commit

Permalink
fix(test): use b type
Browse files Browse the repository at this point in the history
  • Loading branch information
teleyinex committed Nov 30, 2019
1 parent 6ba6c69 commit ad56c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_ldap.py
Expand Up @@ -108,11 +108,11 @@ def test_twitter_login(self):
def test_twitter_no_login(self, mock_twitter, url_for_mock):
"""Test Twitter no_login arg allows using Twitter importer."""
url = '/twitter/?no_login=1'
mock_twitter.authorize.return_value = "OK"
mock_twitter.authorize.return_value = 'OK'
url_for_mock.return_value = 'url'
with patch.dict(self.flask_app.config, {'LDAP_HOST': '127.0.0.1'}):
res = self.app.get(url)
assert res.data == 'OK'
assert res.data == b'OK'
assert mock_twitter.authorize.called_with('url')

@with_context
Expand Down

0 comments on commit ad56c2b

Please sign in to comment.