mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-04 07:26:14 +02:00
Fix failing behave tests (#447)
The keyring package broke backward compatibility in version 8.0 by moving some keyring backends to another package, keyrings.alt, as documented in the changelog [1]. This change broke behave tests which were trying to use keyring.backends.file.PlaintextKeyring - no longer existing in keyring package. This commit adds the keyrings.alt package as dependency so that the PlaintextKeyring class can be used. [1] https://pythonhosted.org/keyring/history.html#id22
This commit is contained in:
parent
b2ddd22e50
commit
4ba577db33
2 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,8 @@ import os
|
|||
import codecs
|
||||
import json
|
||||
import keyring
|
||||
keyring.set_keyring(keyring.backends.file.PlaintextKeyring())
|
||||
import keyrings
|
||||
keyring.set_keyring(keyrings.alt.file.PlaintextKeyring())
|
||||
try:
|
||||
from io import StringIO
|
||||
except ImportError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue