File: cleanup_test_items.py

package info (click to toggle)
python-secretstorage 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 200 kB
  • ctags: 167
  • sloc: python: 695; makefile: 17; sh: 8
file content (10 lines) | stat: -rwxr-xr-x 250 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python3

import secretstorage

bus = secretstorage.dbus_init()
items = secretstorage.search_items(bus, {'application': 'secretstorage-test'})

for item in items:
	print('Deleting item with label %r.' % item.get_label())
	item.delete()