mirror of https://github.com/Gnucash/gnucash
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
416 B
18 lines
416 B
from unittest import TestCase, main
|
|
|
|
from gnucash import Session
|
|
|
|
class BookSession( TestCase ):
|
|
def setUp(self):
|
|
self.ses = Session()
|
|
self.book = self.ses.get_book()
|
|
self.table = self.book.get_table()
|
|
self.currency = self.table.lookup('CURRENCY', 'EUR')
|
|
|
|
class TestBook( BookSession ):
|
|
def test_markclosed(self):
|
|
self.ses.end()
|
|
|
|
if __name__ == '__main__':
|
|
main()
|