@@ -18,6 +18,7 @@ def setUp(self):
1818 self .client = Client ()
1919 self .test_email = "test@example.com"
2020 self .test_password = "test_password"
21+ # deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
2122 self .test_secret = "JBSWY3DPEHPK3PXP" # Standard test secret for TOTP
2223 self .test_tfa_token = "123456"
2324
@@ -37,7 +38,9 @@ def test_login_method_signature_with_totp(self):
3738 # Test that the method accepts TOTP parameters without error
3839 try :
3940 client .login (self .test_email , self .test_password , tfa_token = self .test_tfa_token )
41+ # deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
4042 client .login (self .test_email , self .test_password , mfa_secret = self .test_secret )
43+ # deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
4144 client .login (self .test_email , self .test_password , tfa_token = self .test_tfa_token , mfa_secret = self .test_secret )
4245 except Exception as e :
4346 self .fail (f"Login method should accept TOTP parameters without error: { e } " )
@@ -71,6 +74,7 @@ def test_login_with_mfa_secret_generates_totp(self):
7174 result = self .client .login (
7275 self .test_email ,
7376 self .test_password ,
77+ # deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
7478 mfa_secret = self .test_secret
7579 )
7680
0 commit comments