kescher.tests package

Submodules

kescher.tests.test_cli module

This module contains the tests for cli commands. It asserts that the command line interface works as intended.

kescher.tests.test_cli.iterate_accounts(accounts)

Helper function to iterate to ease iterating through the accounts.

kescher.tests.test_cli.test_auto_vat()

Asserts the auto-vat command executes without error. The results are checked separately with the show_saldo test command.

kescher.tests.test_cli.test_import_accounts()

Asserts that a set of test accounts are imported correctly.

kescher.tests.test_cli.test_import_document()

Asserts that document import from a flat directory structure works correctly.

kescher.tests.test_cli.test_import_invoices()

Asserts that invoices are imported correctly, connected pdf documents are imported as well and the command exits with 0 as exit code. The invoices import is perfomed for the nested and flat directory structure.

kescher.tests.test_cli.test_import_journal()

Asserts that a test journal is imported correctly and the import exits with 0 as exit code.

kescher.tests.test_cli.test_init_creates_db_and_log()

Asserts that a database file and a log file is created and the init command exits with 0 as exit_code.

kescher.tests.test_cli.test_init_debug_writes_to_log()

Asserts that the –debug flag turns on debug messages to be written to the log.

kescher.tests.test_cli.test_show_accounts(expected_accounts)

Asserts the list of accounts matches the expected accounts.

kescher.tests.test_cli.test_show_booked_entry(entry_3_booked)

Asserts, that after the remains of entry 3 where booked to one account, the journalentry should display these bookings.

kescher.tests.test_cli.test_show_entry(entry_3)

Asserts, that the filter results matches expectations of content and formatting. The called journalentry should be displayed in one table, and below all corresponding entries.

kescher.tests.test_cli.test_show_journal_errors()

Test if the column filter returns only the desired columns (on exact match!).

kescher.tests.test_cli.test_show_journal_filtered(journal_filtered_klausi_meyer)

Test if the column filter returns only the desired columns (on exact match!).

kescher.tests.test_cli.test_show_saldo()

This test show the saldo of the specified account in the specified range of time.

Module contents