enhomie package#

Subpackages#

Submodules#

enhomie.conftest module#

Functions and routines associated with Enasis Network Homie Automate.

This file is part of Enasis Network software eco-system. Distribution is permitted, for more information consult the project license file.

enhomie.conftest.bodies() TestBodies[source]#

Return the simple mapping of what to replace in sample.

Returns:

Simple mapping of what to replace in sample.

enhomie.conftest.config(tmp_path: Path) HomieConfig[source]#

Construct the instance for use in the downstream tests.

Parameters:

tmp_path – pytest object for temporal filesystem.

Returns:

Newly constructed instance of related class.

enhomie.conftest.config_factory(tmp_path: Path) HomieConfig[source]#

Construct the instance for use in the downstream tests.

Parameters:

tmp_path – pytest object for temporal filesystem.

Returns:

Newly constructed instance of related class.

enhomie.conftest.homie(config: HomieConfig, respx_mock: MockRouter) Homie[source]#

Construct the instance for use in the downstream tests.

Parameters:
  • config – Primary class instance for configuration.

  • respx_mock – Object for mocking request operation.

Returns:

Newly constructed instance of related class.

enhomie.conftest.homie_factory(config: HomieConfig, respx_mock: MockRouter) Homie[source]#

Construct the instance for use in the downstream tests.

Parameters:
  • config – Primary class instance for configuration.

  • respx_mock – Object for mocking request operation.

Returns:

Newly constructed instance of related class.

enhomie.conftest.replaces(tmp_path: Path) dict[str, Any][source]#

Return the complete mapping of what replaced in sample.

Parameters:

tmp_path – pytest object for temporal filesystem.

Returns:

Complete mapping of what replaced in sample.

enhomie.conftest.replaces_factory() dict[str, Any][source]#

Return the complete mapping of what to replace in sample.

Returns:

Complete mapping of what to replace in sample.

enhomie.conftest.restful(homie: Homie) RestfulService[source]#

Construct the instance for use in the downstream tests.

Parameters:

homie – Primary class instance for Homie Automate.

Returns:

Newly constructed instance of related class.

enhomie.conftest.restful_factory(homie: Homie) RestfulService[source]#

Construct the instance for use in the downstream tests.

Parameters:

homie – Primary class instance for Homie Automate.

Returns:

Newly constructed instance of related class.

enhomie.conftest.service(homie: Homie, respx_mock: MockRouter) HomieService[source]#

Construct the instance for use in the downstream tests.

Parameters:
  • homie – Primary class instance for Homie Automate.

  • respx_mock – Object for mocking request operation.

Returns:

Newly constructed instance of related class.

enhomie.conftest.service_factory(homie: Homie, respx_mock: MockRouter) HomieService[source]#

Construct the instance for use in the downstream tests.

Parameters:
  • homie – Primary class instance for Homie Automate.

  • respx_mock – Object for mocking request operation.

Returns:

Newly constructed instance of related class.

enhomie.conftest.times() TestTimes[source]#

Return the simple mapping of what to replace in sample.

Returns:

Simple mapping of what to replace in sample.

Module contents#

Functions and routines associated with Enasis Network Homie Automate.

This file is part of Enasis Network software eco-system. Distribution is permitted, for more information consult the project license file.