Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
1letter committed May 11, 2024
1 parent 2b41569 commit 63e7142
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/pas/plugins/tfa/tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,16 @@ def test_qr_code_generation(self):
secret,
)
self.assertEqual(str(base64_image), QR_CODE_REF)

def test_get_or_create_secret(self):
from pas.plugins.tfa.helpers import get_or_create_secret

secret = get_or_create_secret()

self.assertIsNotNone(secret)

def test_get_secret_key(self):
from pas.plugins.tfa.helpers import get_secret_key

key = get_secret_key()
self.assertIsNotNone(key)

0 comments on commit 63e7142

Please sign in to comment.