Skip to content

Commit

Permalink
Attempt to fix string / bytes comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ricobl authored Apr 28, 2024
1 parent ac0e354 commit b78a45d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testproject/tests/test_crypto_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TestCryptoInstance(TestCase):

def test_should_have_a_default_secret_key(self):
self.assertEqual(crypto.key, 'MY_SECURE_KEY')
self.assertEqual(crypto.key.decode(), conf.THUMBOR_SECURITY_KEY)
self.assertEqual(crypto.key.decode('utf-8'), conf.THUMBOR_SECURITY_KEY)

@override_settings(THUMBOR_SECURITY_KEY='custom-security-key')
def test_should_read_key_from_settings(self):
Expand Down

0 comments on commit b78a45d

Please sign in to comment.