How to use the secretstorage.Collection function in SecretStorage

To help you get started, we’ve selected a few SecretStorage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mitya57 / secretstorage / tests / test_unlocking.py View on Github external
def setUp(self) -> None:
		self.connection = dbus_init()
		collection_path = "/org/freedesktop/secrets/collection/english"
		self.collection = Collection(self.connection, collection_path)
github mitya57 / secretstorage / tests / test_collection.py View on Github external
def test_all_collections(self) -> None:
		labels = map(Collection.get_label, get_all_collections(self.connection))
		self.assertIn(self.collection.get_label(), labels)
github mitya57 / secretstorage / tests / test_collection.py View on Github external
def test_deleting_prompt(self) -> None:
		collection_path = "/org/freedesktop/secrets/collection/lockprompt"
		try:
			collection = Collection(self.connection, collection_path)
		except ItemNotFoundException:
			self.skipTest("This test should only be run with mock-service-lock.")
		collection.unlock()
		collection.delete()
github mitya57 / secretstorage / tests / test_collection.py View on Github external
def test_deleting(self) -> None:
		collection_path = "/org/freedesktop/secrets/collection/spanish"
		collection = Collection(self.connection, collection_path)
		collection.unlock()
		collection.delete()