示例#1
0
def test_edit_student():
    student = {"first_name": "John", "last_name": "Smith", "grade": 10}
    markbook.edit_student(student, first_name="Frank", last_name="Bell")
    assert student["first_name"] == "Frank"
    assert student["last_name"] == "Bell"
    assert student["grade"] == 10
示例#2
0
def test_edit_student():
    student = {"first_name": "John", "last_name": "Smith", "grade": 10}
    markbook.edit_student("first_name", "Bob")
示例#3
0
                  ' from ' + classroom.get('course_name')))

        # removing student
        if confirm == 1:
            remove_student_from_classroom(student, classroom)
            overwrite(copy)
            break

        else:
            break

    elif page == 6:  # edit a student WIP
        clear_screen()
        print('---EDIT A STUDENT (WIP)---')
        copy = copy()
        classroom = class_search(copy)
        if classroom is None:
            break

        student = student_search(classroom)
        print("Follow this format: first_name= 'Frank'")
        kwargs = input("please input the students updated information")

        edit_student(student, kwargs)
        break

    else:
        print('\nPlease input an integer that coressponds to your choice')

print("\nGoodbye")