Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /beanone_apikey /tests /unit /test_utils.py
| from apikey.utils import generate_api_key, hash_api_key | |
| def test_hash_api_key(): | |
| key = "testkey123" | |
| result = hash_api_key(key) | |
| assert result | |
| assert isinstance(result, str) | |
| assert result == hash_api_key(key) # Same input should produce same output | |
| def test_generate_api_key(): | |
| result = generate_api_key() | |
| assert result | |
| assert isinstance(result, str) | |
| assert ( | |
| result != generate_api_key() | |
| ) # Different calls should produce different outputs | |
Xet Storage Details
- Size:
- 494 Bytes
- Xet hash:
- c3e2e130d565c8e827bdc23f5467578965b0739800e64c67bd09d664dec35a9d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.