change test to fit to implementation problem

a contextmanager that is a class method caused an error. So now it's outside of the class in the same way it is in piecash. Maybe they had the same problem.
This commit is contained in:
Flukx 2020-12-12 15:46:10 +00:00
parent 4451225174
commit c6d165fb79

View file

@ -124,7 +124,7 @@ class TestDatabase:
the mapping from the currencies to the accounts,
the exchange rates when buying the second with the first element of the key
"""
with database.BookAttributes.create_book() as bookattr:
with database.create_bookattributes() as bookattr:
accounts = {}
dummy_accounts = {}
currencies = [bookattr.book.default_currency,