From d13fb35a5c6fa630d5044e2334fb4fdb17b3bb37 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 7 Aug 2022 16:11:04 -0400 Subject: [PATCH] Add test for the attributes on the schema --- keyring/backends/libsecret.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/keyring/backends/libsecret.py b/keyring/backends/libsecret.py index 39ad9a25..368b0d31 100644 --- a/keyring/backends/libsecret.py +++ b/keyring/backends/libsecret.py @@ -34,6 +34,13 @@ class Keyring(backend.SchemeSelectable, KeyringBackend): @property def schema(self): + """ + Schema is used by the API to define the types of each field. + + >>> available or __import__('pytest').skip() + >>> Keyring().schema.attributes + {'username': 0, 'password': 0, 'application': 0} + """ return Secret.Schema.new( "org.freedesktop.Secret.Generic", Secret.SchemaFlags.NONE,