mlm_insights.tests.test_context package

Subpackages

Submodules

mlm_insights.tests.test_context.profile_test_context module

class mlm_insights.tests.test_context.profile_test_context.ProfileTestContext(current_profile: ~mlm_insights.core.profiles.profile.Profile, reference_profile: ~mlm_insights.core.profiles.profile.Profile | None = None, _current_profile_json: ~typing.Dict[str, ~typing.Any] = <factory>, _reference_profile_json: ~typing.Dict[str, ~typing.Any] = <factory>)

Bases: TestContext

ProfileTestContext contains current_profile & reference_profile.

Configuration

current_profileProfile

The Profile under test.

reference_profile: Optional[Profile]

Optionally takes reference profile, if the test uses reference profile.

current_profile: Profile
get_profile_json(profile_source: ProfileSource) Dict[str, Any]

Get the json view of the profile.

Parameters

profile_source : ProfileSource

Returns

Returns the json of profile according to ProfileSource.

reference_profile: Profile | None = None

Module contents