tests package

Submodules

tests.test_family module

Created on 2021-01-01

@author: wf

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

Bases: Basetest

test wiki family code

setUp()[source]

setUp test environment

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: Basetest

test the frontend

setUp()[source]

setUp test environment

testFixHtml()[source]

test that hrefs, images src, srcset videos and objects are modified from local-absolute urls to ones with “www”

testIssue14()[source]

test Allow to use templates specified in Wiki https://github.com/BITPlan/pyWikiCMS/issues/14

testIssue15()[source]

test Filter “edit” section buttons

see https://github.com/BITPlan/pyWikiCMS/issues/15

testIssue17()[source]

https://github.com/BITPlan/pyWikiCMS/issues/17

filter <html><body><div class=”mw-parser-output”>

testIssue18()[source]

https://github.com/BITPlan/pyWikiCMS/issues/18 image proxying should work #18

testIssue19()[source]

https://github.com/BITPlan/pyWikiCMS/issues/19 editsection filter should keep other span’s untouched #19

testProxy()[source]

test the proxy handling

testToReveal()[source]

test reveal 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: Basetest

test the server specifics

setUp()[source]

setUp test environment

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: Basetest

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

createPackage(packageFolder, templateFolder, moduleName, moduleCode, templateCode)[source]
getHtml(path)[source]
static initServer()[source]

initialize the server

setUp()[source]

prepare everything needed for the tests

testConfig()[source]

check config

testIssue14Templates()[source]

test template handling

testReveal()[source]

test Issue 20 https://github.com/BITPlan/pyWikiCMS/issues/20 support reveal.js slideshow if frame is “reveal” #20

testSplit()[source]

test splitting the path into site an path

testWebServer()[source]

test the WebServer

tests.test_widgets module

tests.test_wikicms module

Created on 27.07.2020

@author: wf

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

Bases: Basetest

test the Mediawiki based Content Management System

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]

setUp test environment

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

testWikiCMS()[source]

test CMS access

Module contents