コード例 #1
0
    def test_get_states_transition_details(self, projects, snapshot):

        #arrange
        from .raw_inputs import get_transition_details_query_dto
        storage = ProjectStorageImplementation()

        #act
        response = storage.get_states_transition_details(
            get_transition_details_query_dto)

        #assert
        snapshot.assert_match(response, 'transition_details_dto')
コード例 #2
0
    def test_get_states_transition_details_with_zero_checklist(
            self, projects, snapshot):

        #arrange
        from .raw_inputs\
            import query_dto_with_no_checklist_for_transition
        storage = ProjectStorageImplementation()

        #act
        response = storage.get_states_transition_details(
            query_dto_with_no_checklist_for_transition)

        #assert
        snapshot.assert_match(response, 'transition_details')