Browse Source

ref(py3): Fix header comparison in bitbucket test (#21077)

Evan Purkhiser 4 years ago
parent
commit
3da1968d0c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/sentry_plugins/bitbucket/test_plugin.py

+ 1 - 1
tests/sentry_plugins/bitbucket/test_plugin.py

@@ -84,7 +84,7 @@ class BitbucketPluginTest(PluginTestCase):
         assert self.plugin.create_issue(request, group, form_data) == 1
 
         request = responses.calls[-1].request
-        assert request.headers.get("Authorization", "").startswith("OAuth ")
+        assert request.headers.get("Authorization", b"").startswith(b"OAuth ")
 
     @responses.activate
     def test_link_issue(self):