13 lines
326 B
Python
13 lines
326 B
Python
import secret_loader
|
|
|
|
|
|
def test_hardcoded():
|
|
loader = secret_loader.SecretLoader(ENV_KEY_PREFIX='TEST', KEY='VALUE')
|
|
assert loader.load('ENV_KEY_PREFIX') == 'TEST'
|
|
assert loader.load('KEY') == 'VALUE'
|
|
|
|
|
|
def test_lookup_unknown():
|
|
loader = secret_loader.SecretLoader()
|
|
assert loader.load('UNKNOWN') is None
|