Beispiel #1
0
    def test_update_mutation_outputs(self):
        # create the list of inputs
        inputs = update_mutation_outputs(self.model_service)

        # the output of an update mutation should be a graphql object corresponding
        # to the newly updated object
        assert inputs == [
            _summarize_o_mutation_type(self.model_service.model)
        ], ("Update mutation output was not correct.")
Beispiel #2
0
    def test_update_mutation_outputs(self):
        # create the list of inputs
        inputs = update_mutation_outputs(self.model_service)

        # the output of an update mutation should be a graphql object corresponding
        # to the newly updated object
        assert inputs == [_summarize_o_mutation_type(self.model_service.model)], (
            "Update mutation output was not correct."
        )
Beispiel #3
0
    def test_create_mutation_outputs(self):
        # create the list of inputs
        outputs = create_mutation_outputs(self.model_service)

        # the output of a create mutation should be the object corresponding
        # to the model created

        assert outputs == [
            _summarize_o_mutation_type(self.model_service.model)
        ], ("Create mutation output was not correct.")
Beispiel #4
0
    def test_create_mutation_outputs(self):
        # create the list of inputs
        outputs = create_mutation_outputs(self.model_service)

        # the output of a create mutation should be the object corresponding
        # to the model created

        assert outputs == [_summarize_o_mutation_type(self.model_service.model)], (
            "Create mutation output was not correct."
        )