Skip to content

Commit

Permalink
adjust unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deepmancer committed Aug 13, 2024
1 parent 644448a commit b3507e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/config/test_auth_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ def test_auth_token_config():
# Test default values
config = AuthConfig()
assert config.secret == "default_secret"
assert config.algorithm == "HS256"
assert config.jwt_algorithm == "HS256"
assert config.expiration_seconds == 3600
assert config.expiration_minutes == 60

# Test custom values
config = AuthConfig(secret="mysecret", algorithm="HS512", expiration_seconds=1800)
config = AuthConfig(secret="mysecret", jwt_algorithm="HS512", expiration_seconds=1800)
assert config.secret == "mysecret"
assert config.algorithm == "HS512"
assert config.jwt_algorithm == "HS512"
assert config.expiration_seconds == 1800
assert config.expiration_minutes == 30

Expand Down

0 comments on commit b3507e9

Please sign in to comment.