Ejemplo n.º 1
0
    def test_create_evaluation_is_idempotent(self):
        s = SubmissionFactory(
            phase=self.method.phase, algorithm_image=self.algorithm_image,
        )
        s.create_evaluation()

        assert AlgorithmEvaluation.objects.count() == 2
Ejemplo n.º 2
0
    def test_create_evaluation_is_idempotent(self):
        with capture_on_commit_callbacks(execute=True):
            s = SubmissionFactory(
                phase=self.method.phase,
                algorithm_image=self.algorithm_image,
            )
            s.create_evaluation()

        assert Job.objects.count() == 2