Changeset 12930 for main/waeup.kofa
- Timestamp:
- 13 May 2015, 13:01:01 (10 years ago)
- Location:
- main/waeup.kofa/trunk/docs/source/userdocs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/docs/source/userdocs/testing.rst
r12929 r12930 27 27 manually. 28 28 29 What we test: " unit" and "functional" Tests29 What we test: "Unit" and "Functional" Tests 30 30 ------------------------------------------- 31 31 … … 47 47 48 48 There are also two different ways to integrate tests, either 49 functional or unit, into a Python package: * doctests* (or doctests)49 functional or unit, into a Python package: *Doctest tests* (or doctests) 50 50 and *Python tests*. Python test modules are a collection of 51 51 isolatable Python test cases. A test case combines a collection of 52 unittest methods which are being executed by the testrunner one52 test methods which are being executed by the testrunner one 53 53 after the other. Python test modules are automatically identified by 54 54 means of their filenames which start with ``test_``. In contrast, … … 86 86 87 87 88 Doctest s89 ======== 88 Doctest Tests 89 ============= 90 90 91 91 Browsing … … 159 159 ============ 160 160 161 There are hundreds of Python test cases in Kofa with many test 162 methods each. Here we present only a few of them. The test methods 163 are easy to read. In most cases they are functional and certain 164 methods and properties of a test browser are called. Most important 165 are `browser.open()` (opens a web page), `browser.getControl()` 166 (gets a control button), `browser.getLink()` (gets a link) and 167 `browser.contents` (is the HTML content of the opened page). 168 169 .. _test_suspended_officer: 170 171 Suspended Officer Account Test 172 ------------------------------ 173 174 The first test can be found in 175 `waeup.kofa.browser.tests.test_browser.SupplementaryBrowserTests`: 176 161 177 .. literalinclude:: ../../../src/waeup/kofa/browser/tests/test_browser.py 162 178 :pyobject: test_suspended_officer 179 180 The test makes sure that a suspended officers can't login but see a 181 proper warning message when trying to login. Furthermore, suspended 182 officer accounts are clearly marked and a warning message shows up 183 if a manager accesses an suspended account, see :ref:`Officers 184 <officers>`. -
main/waeup.kofa/trunk/docs/source/userdocs/users.rst
r12926 r12930 44 44 serves as user title. 45 45 46 .. _officers: 46 47 47 48 Officers … … 51 52 52 53 :ref:`Officers Doctests <userscontainer_txt>` 54 55 :ref:`Officers Python Test <test_suspended_officer>` 53 56 54 57 Officers are users with a dedicated user account object stored in the
Note: See TracChangeset for help on using the changeset viewer.