tests.common package

Submodules

tests.common.test_file_handler module

test class

class tests.common.test_file_handler.FileHandlerTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

Class representing the test case testing the file file_handler class

file = '__testfile.py'
name = '__testfile'
suffix = 'py'
testAddContentIfFileAndFolderDoesNotExist()[source]

Tests if the method create or modify file with content works, if the file and Folder does not exist

testAddContentIfFileDoesNotExist()[source]

Tests if the editing of a file not existing works.

testAddContentIfFileExists()[source]

Tests if the editing of a file existing works.

testCopyFile()[source]

Tests if the copying of a file none existing beforhand works.

testCreateFile()[source]

Tests if the creation of a file none existing beforehand works.

testCreateFileFromPath()[source]

Tests if the creation of a file none existing beforhand works.

testCreateFileIfPathNotExisting()[source]

Tests if the creation of a file, none existing beforehand and folder not existing, works.

testCreateFilePath()[source]

Tests if the construction of the folder path works.

testCreateFolder()[source]

Tests if the creation of a folder works.

testCreateOrModifyFileWithContentIfFileExists()[source]

Tests if the method create or modify file with content works, if the file exists

tests.common.test_output_handler_click module

test class

class tests.common.test_output_handler_click.ClickOutputHandler(methodName='runTest')[source]

Bases: unittest.case.TestCase

testing the file output handler

setUp()[source]
testConfirmIfFalse(confirm)[source]

test Confirm if not confirmed

testConfirmIfTrue(confirm)[source]

test Confirm if confirmed

testPrintError()[source]

test print error.

testPrintInfo()[source]

test print info.

testPromptError(prompt)[source]

test prompt info

testPromptInfo(prompt)[source]

test prompt info

testPromptInfoWithDefault(prompt)[source]

test prompt info

tests.common.test_output_handler_file module

test class

class tests.common.test_output_handler_file.FileOutputHandler(methodName='runTest')[source]

Bases: unittest.case.TestCase

testing the file output handler

setUp()[source]
testConfirmIfFalse()[source]

test Confirm if not confirmed

testConfirmIfTrue()[source]

test Confirm if confirmed

testPrintError()[source]

test print error. should return the edited file

testPrintInfo()[source]

test print info. should return the edited file

testPromptInfo()[source]

test prompt info

test_prompt_error()[source]

test prompt error

Module contents