Add test capturing need for an alternate keyring with an alternate keychain.
@@ -12,3 +12,9 @@ from keyring.backends import macOS
class Test_macOSKeychain(BackendBasicTests):
def init_keyring(self):
return macOS.Keyring()
+
+ @pytest.mark.xfail
+ def test_alternate_keychain(self):
+ alt = self.keyring.with_keychain('abcd')
+ assert alt.keychain == 'abcd'
+ assert self.keyring.keychain is None
