more tests: entity fetching + erase

This commit is contained in:
Lysann Tranvouez 2026-03-09 00:34:34 +01:00
parent ef188fcfba
commit 60999c7eab
3 changed files with 79 additions and 11 deletions

View file

@ -34,6 +34,10 @@ public class PGPAgent {
pgpInterface = nil
}
public func isInitialized() -> Bool {
pgpInterface != nil
}
public func getKeyID() throws -> [String] {
try checkAndInit()
return pgpInterface?.keyID ?? []

View file

@ -324,7 +324,7 @@ public class PasswordStore {
PersistenceController.shared.save()
}
public func deleteCoreData() {
private func deleteCoreData() {
PasswordEntity.deleteAll(in: context)
PersistenceController.shared.save()
}