def it_should_report_one_error(fs, fixture, inner_fixture): dir = f"{INPUT_DIR}/section={SECTION_ID}/assignments" fs.remove_object(dir) result = drval.validate_section_directory_structure(INPUT_DIR, SECTION_ID) assert result[0] == f"Missing directory: {dir}"
def it_should_not_report_an_error(fs, fixture, inner_fixture): dir = f"{INPUT_DIR}/section={SECTION_ID}/attendance-events" fs.remove_object(dir) result = drval.validate_section_directory_structure(INPUT_DIR, SECTION_ID) assert len(result) == 0
def it_should_not_return_any_errors(fs, fixture, inner_fixture): result = drval.validate_section_directory_structure(INPUT_DIR, SECTION_ID) assert len(result) == 0
def it_should_report_an_error(): result = drval.validate_section_directory_structure(INPUT_DIR, SECTION_ID) assert result[0] == f"Missing directory: {INPUT_DIR}"