workflows.tests.test_eventsΒΆ

Tests for workflows events module.

ClassesΒΆ

TestEvent

Test the Event dataclass.

TestEvents

Test the Events class containing event definitions.

TestEventsAll

Test the Events.all() class method.

TestEventsProtocols

Test the Events.protocols() class method.

TestEventsOperationsFor

Test the Events.operations_for() class method.

Module ContentsΒΆ

class workflows.tests.test_events.TestEvent[source]ΒΆ

Test the Event dataclass.

test_event_creation()[source]ΒΆ

Test creating an Event instance.

test_event_is_frozen()[source]ΒΆ

Test that Event is frozen (immutable).

test_event_equality()[source]ΒΆ

Test that two Events with same values are equal.

test_event_hashable()[source]ΒΆ

Test that Event instances are hashable (can be used in sets/dicts).

class workflows.tests.test_events.TestEvents[source]ΒΆ

Test the Events class containing event definitions.

test_events_has_est_simpleenroll()[source]ΒΆ

Test that Events has est_simpleenroll defined.

test_events_has_est_simplereenroll()[source]ΒΆ

Test that Events has est_simplereenroll defined.

test_event_instances_are_unique_objects()[source]ΒΆ

Test that event instances are distinct.

class workflows.tests.test_events.TestEventsAll[source]ΒΆ

Test the Events.all() class method.

test_all_returns_list()[source]ΒΆ

Test that Events.all() returns a list.

test_all_contains_event_instances()[source]ΒΆ

Test that all returned items are Event instances.

test_all_not_empty()[source]ΒΆ

Test that Events.all() returns non-empty list.

test_all_contains_est_simpleenroll()[source]ΒΆ

Test that Events.all() includes est_simpleenroll.

test_all_no_duplicates()[source]ΒΆ

Test that Events.all() doesn’t return duplicates.

class workflows.tests.test_events.TestEventsProtocols[source]ΒΆ

Test the Events.protocols() class method.

test_protocols_returns_list()[source]ΒΆ

Test that Events.protocols() returns a list.

test_protocols_contains_strings()[source]ΒΆ

Test that all returned items are strings.

test_protocols_not_empty()[source]ΒΆ

Test that Events.protocols() returns non-empty list.

test_protocols_no_duplicates()[source]ΒΆ

Test that Events.protocols() doesn’t return duplicates.

test_protocols_contains_est()[source]ΒΆ

Test that Events.protocols() includes EST protocol.

test_protocols_filters_empty_protocols()[source]ΒΆ

Test that Events.protocols() doesn’t include empty strings.

test_protocols_is_sorted()[source]ΒΆ

Test that Events.protocols() returns sorted list.

class workflows.tests.test_events.TestEventsOperationsFor[source]ΒΆ

Test the Events.operations_for() class method.

test_operations_for_est_returns_list()[source]ΒΆ

Test that operations_for returns a list.

test_operations_for_est_not_empty()[source]ΒΆ

Test that EST protocol has operations.

test_operations_for_est_contains_simpleenroll()[source]ΒΆ

Test that EST operations include simpleenroll.

test_operations_for_unknown_protocol()[source]ΒΆ

Test operations_for with unknown protocol returns empty list.

test_operations_for_case_sensitive()[source]ΒΆ

Test that operations_for is case-sensitive.