Skip to content

Commit

Permalink
Add test for the attributes on the schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 7, 2022
1 parent 52ceae8 commit d13fb35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions keyring/backends/libsecret.py
Expand Up @@ -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,
Expand Down

0 comments on commit d13fb35

Please sign in to comment.