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
def test_valid_versions(test_input, expected): s = VaultSecret(**test_input) secret = s.dict() for key in expected: assert secret[key] == expected[key]