From f02ab9a41380c8edf9fff43108e16be3772a297e Mon Sep 17 00:00:00 2001 From: MueezKhan246 Date: Mon, 29 Apr 2024 14:57:22 +0500 Subject: [PATCH] test: using correct assertion for test case --- .../test_api/test_blackboard/test_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_integrated_channels/test_api/test_blackboard/test_views.py b/tests/test_integrated_channels/test_api/test_blackboard/test_views.py index c5fc03346f..112dd85dc1 100644 --- a/tests/test_integrated_channels/test_api/test_blackboard/test_views.py +++ b/tests/test_integrated_channels/test_api/test_blackboard/test_views.py @@ -214,7 +214,7 @@ def test_global_config_get(self, mock_current_request): assert not data.get('results')[0].get('app_secret') self.assertTrue(hasattr(self.global_config, 'decrypted_app_secret')) - self.assertTrue(self.global_config.encrypted_app_secret is not None) + self.assertIsNotNone(self.global_config.encrypted_app_secret) self.global_config.decrypted_app_secret = '' self.global_config.save() self.assertTrue(hasattr(self.global_config, 'decrypted_app_secret'))