blackfennec_doubles.presentation_system.navigation_service package
Submodules
blackfennec_doubles.presentation_system.navigation_service.double_navigation_service module
NavigationService Doubles.
In this module any Doubles used for testing components using the NavigationService are contained to ensure that unit-tests only test a single component.
- class blackfennec_doubles.presentation_system.navigation_service.double_navigation_service.NavigationServiceMock[source]
Bases:
object
Class represents a Mock Double for the NavigationService.
With this class it can be tested whether the navigate member function was called in the correct way, and how many times it was executed.
- navigate(sender, destination)[source]
StructureViewFactory.create method mock.
- Parameters
sender (Any) – sender interpretation which initiated navigation
destination (Any) – structure to navigate to
Saves passed argument on class to enable user to see passed arguments. Counts amount of times navigate has been called.