betty.test_utils.locale module

Provide testing utilities for locale functionality.

class betty.test_utils.locale.PotFileTestBase[source]

Bases: object

A base class for testing that a *.pot file is up to date.

assets_directory_path() Path[source]

The assets directory path containing the translations that are being tested.

command() str[source]

The command to suggest the developer runs in case the translations are out of date.

async test() None[source]

Test the translations.

class betty.test_utils.locale.ProjectPotFileTestBase[source]

Bases: PotFileTestBase

A base class for testing that an end user’s project’s *.pot file is up to date.

command() str[source]

The command to suggest the developer runs in case the translations are out of date.