Utilitary API

There are some utilitary methods to help you.

Given:

wiki = init_system(Wiki)
basedir_abspath()

Return a list with all basedirs absolute paths

Tests utils

If your domain uses the How to Use Clock feature, you’ll likely to face errors while testing your pure domain since the _clock is injected by coopy.

There are 2 ways of handle this: Enable a regular clock on your domain, for testing or mock your clock to return the same date.

TestSystemMixin.mock_clock(domain, mocked_date)

This method will inject a clock that always return mocked_date

TestSystemMixin.enable_clock(domain)

This method will inject a regular coopy clock on your domain instance

Read the Docs v: latest
Versions
latest
0.4b
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.