Esempio n. 1
0
 def test_explicit_settings(test_input):
     s = VaultSecret(**test_input)
     secret = s.dict()
     secret["engine"] = secret[
         "engine"].name  # map actual engine to str name representation
     assert secret == test_input
Esempio n. 2
0
 def test_valid_versions(test_input, expected):
     s = VaultSecret(**test_input)
     secret = s.dict()
     for key in expected:
         assert secret[key] == expected[key]