Skip to content

Commit

Permalink
Fix bytes / string comparison in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ricobl committed Apr 28, 2024
1 parent 6c21499 commit fe16df7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testproject/tests/test_crypto_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
class TestCryptoInstance(TestCase):

def test_should_have_a_default_secret_key(self):
self.assertEqual(crypto.key, 'MY_SECURE_KEY')
self.assertEqual(crypto.key, conf.THUMBOR_SECURITY_KEY)
key = crypto.key.decode('utf-8')
self.assertEqual(key, 'MY_SECURE_KEY')
self.assertEqual(key, 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 fe16df7

Please sign in to comment.