import pytest
from unittest.mock import Mock
from src.Validations.Validator import Validator


def test_check_failure():
    fake_validation = Mock()
    validations = [fake_validation]
    report = Mock()
    student = Mock()
    course_section = Mock()
    validator = Validator(student, course_section)
    validator.check_for_failures(validations, report)
    fake_validation.getInstance.assert_called_once

183b84f1a1eff976e71bd842e15a7aa87c409980
<mask token>

<mask token>


def test_check_failure():
    fake_validation = Mock()
    validations = [fake_validation]
    report = Mock()
    student = Mock()
    course_section = Mock()
    validator = Validator(student, course_section)
    validator.check_for_failures(validations, report)
    fake_validation.getInstance.assert_called_once

import pytest
from unittest.mock import Mock
from src.Validations.Validator import Validator


def test_check_failure():
    fake_validation = Mock()
    validations = [fake_validation]
    report = Mock()
    student = Mock()
    course_section = Mock()
    validator = Validator(student, course_section)
    validator.check_for_failures(validations, report)
    fake_validation.getInstance.assert_called_once
