panstamps.utKit module

Unit testing tools

class panstamps.utKit.utKit(moduleDirectory, dbConn=False)[source][source]

Bases: utKit

Override dryx utKit

get_project_root()[source][source]

Get the root of the `python` package - useful for getting files in the root directory of a project

Return

  • rootPath – the root path of a project

refresh_database()[source][source]

Refresh the unit test database

setupModule()[source][source]

The setupModule method

Return

  • log – a logger

  • dbConn – a database connection to a test database (details from yaml settings file)

  • pathToInputDir – path to modules own test input directory

  • pathToOutputDir – path to modules own test output directory

tearDownModule()[source][source]

The tearDownModule method