tests package

Submodules

tests.test_family module

Created on 2021-01-01

@author: wf

class tests.test_family.TestFamily(methodName='runTest')[source]

Bases: unittest.case.TestCase

test wiki family code

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

testGetSetting()[source]

get getting a setting from the local settings

test fixing BITPlan wiki family style logo references with a site subpath

testStatusCode()[source]

test getting the status code for the a wiki

tests.test_frontend module

Created on 2020-12-27

@author: wf

class tests.test_frontend.TestFrontend(methodName='runTest')[source]

Bases: unittest.case.TestCase

test the frontend

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

testProxy()[source]

test the proxy handling

testWikiPage()[source]

test the route to page translation

tests.test_server module

Created on 2021-01-06

@author: wf

class tests.test_server.TestServer(methodName='runTest')[source]

Bases: unittest.case.TestCase

test the server specifics

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

testServer()[source]

test server functions

tests.test_webserver module

Created on 2020-07-11

@author: wf

class tests.test_webserver.TestWebServer(methodName='runTest')[source]

Bases: unittest.case.TestCase

see https://www.patricksoftwareblog.com/unit-testing-a-flask-application/

static initServer()[source]

initialize the server

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

testConfig()[source]

check config

testSplit()[source]

test splitting the path into site an path

testWebServer()[source]

test the WebServer

tests.test_widgets module

Created on 2021-01-04

@author: wf

class tests.test_widgets.TestWidgets(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

testJinjaType()[source]

test Jinja template type check workaround according to https://stackoverflow.com/a/38086633/1497139

testWidgets()[source]

test widget handling

tests.test_wikicms module

Created on 27.07.2020

@author: wf

class tests.test_wikicms.TestWikiCMS(methodName='runTest')[source]

Bases: unittest.case.TestCase

static getSMW_Wiki(wikiId='cr')[source]
static getSMW_WikiUser(wikiId='cr')[source]

get semantic media wiki users for SemanticMediawiki.org and openresearch.org

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

testWikiCMS()[source]

test CMS access

Module contents