timApp.tests.db package
Contents
timApp.tests.db package#
Submodules#
timApp.tests.db.test_clipboard module#
Unit tests for Clipboard class.
timApp.tests.db.test_contacts module#
- class timApp.tests.db.test_contacts.ContactsTest(methodName='runTest')[source]#
Bases:
timApp.tests.db.timdbtest.TimDbTest
Tests for adding and manipulating contacts
timApp.tests.db.test_document module#
Unit tests for Document class.
timApp.tests.db.test_folder_rename module#
timApp.tests.db.test_import_accounts module#
- class timApp.tests.db.test_import_accounts.AccountImportTest(methodName='runTest')[source]#
Bases:
timApp.tests.db.timdbtest.TimDbTest
- write_and_test(accounts: list[timApp.user.user.UserInfo], username_is_email=False, expected_existing=None)[source]#
timApp.tests.db.test_import_passwords module#
timApp.tests.db.test_item_create module#
timApp.tests.db.test_markdownconverter module#
A test for markdownconverter module.
timApp.tests.db.test_notify module#
timApp.tests.db.test_personal_folder module#
- class timApp.tests.db.test_personal_folder.PersonalFolderTest(methodName='runTest')[source]#
timApp.tests.db.test_plugin module#
timApp.tests.db.test_references module#
Unit tests for testing paragraph referencing.
- class timApp.tests.db.test_references.RefTest(methodName='runTest')[source]#
- timApp.tests.db.test_references.add_area_ref_paragraph(doc: timApp.document.document.Document, src_doc: timApp.document.document.Document, src_area_name: str, text: Optional[str] = None, attrs: Optional[dict] = None) timApp.document.docparagraph.DocParagraph [source]#
- timApp.tests.db.test_references.add_ref_paragraph(doc: timApp.document.document.Document, src_par: timApp.document.docparagraph.DocParagraph, text: Optional[str] = None, attrs: Optional[dict] = None) timApp.document.docparagraph.DocParagraph [source]#
timApp.tests.db.test_safe_yaml module#
timApp.tests.db.test_settings module#
- timApp.tests.db.test_settings.make_settings(p: timApp.document.docparagraph.DocParagraph)[source]#
timApp.tests.db.test_users module#
- class timApp.tests.db.test_users.UserTest(methodName='runTest')[source]#
Bases:
timApp.tests.db.timdbtest.TimDbTest
- grant(g: timApp.user.usergroup.UserGroup, b: timApp.item.block.Block, t: timApp.auth.accesstype.AccessType, **kwargs)[source]#
- remove(g, b: timApp.item.block.Block, t)[source]#
timApp.tests.db.timdbtest module#
- class timApp.tests.db.timdbtest.TimDbTest(methodName='runTest')[source]#
Bases:
unittest.case.TestCase
- assert_contacts(user: timApp.user.user.User, channel: timApp.messaging.messagelist.listinfo.Channel, contacts: list[tuple[timApp.user.usercontact.ContactOrigin, str]])[source]#
- assert_primary_contact(user: timApp.user.user.User, channel: timApp.messaging.messagelist.listinfo.Channel, origin: timApp.user.usercontact.ContactOrigin, contact: str)[source]#
- create_doc(from_file=None, initial_par: Optional[Union[str, list[str]]] = None, settings=None) timApp.document.docinfo.DocInfo [source]#
- create_docs = False#
- db_path = 'postgresql://postgres:postgresql@postgresql:5432/tim'#
- i = 0#
- init_doc(doc: timApp.document.document.Document, from_file, initial_par: str | list[str], settings)[source]#
- classmethod setUpClass()[source]#
Hook method for setting up class fixture before running tests in the class.
- test_files_path = PosixPath('/tmp/doctest_files')#
- property test_user_1: timApp.user.user.User#
- property test_user_2: timApp.user.user.User#
- property test_user_3: timApp.user.user.User#