pymasep.tests.fixtures

Functions

mock_game(game_class)

Create a mock game for the current project with empty configuration

mock_environment(mock_game)

Create a mock environment for the current project with empty configuration

mock_environment_conf(configuration, game_class)

Create a mock environment for the current project with configuration defined as fixture

base_directory(relative_path, request)

Pytest fixture that set the base directory for the tests

base_directory_unit(relative_path, request)

Pytest fixture that set the base directory for the unit tests

cleanup(request)

Cleanup a testing directory once we are finished.

Module Contents

pymasep.tests.fixtures.mock_game(game_class)

Create a mock game for the current project with empty configuration

pymasep.tests.fixtures.mock_environment(mock_game)

Create a mock environment for the current project with empty configuration

pymasep.tests.fixtures.mock_environment_conf(configuration, game_class)

Create a mock environment for the current project with configuration defined as fixture

pymasep.tests.fixtures.base_directory(relative_path, request)

Pytest fixture that set the base directory for the tests

pymasep.tests.fixtures.base_directory_unit(relative_path, request)

Pytest fixture that set the base directory for the unit tests

pymasep.tests.fixtures.cleanup(request)

Cleanup a testing directory once we are finished.