"""
Example student code. This file is automatically generated from the files in the instructor-directory
"""
from src.unitgrade2.unitgrade2 import UTestCase, Report
from src.unitgrade2 import evaluate_report_student

class Week1(UTestCase):
    """ The first question for week 1. """
    def test_add(self):
        from cs103.homework1 import add
        self.assertEqualC(add(2,2))
        self.assertEqualC(add(-100, 5))


class AutomaticPass(UTestCase):
    def test_student_passed(self):
        self.assertEqual(2,2)


import cs103
class Report3(Report):
    title = "CS 101 Report 3"
    questions = [(Week1, 20), (AutomaticPass, 10)]  # Include a single question for 10 credits.
    pack_imports = [cs103]

if __name__ == "__main__":
    # from unitgrade_private2.hidden_gather_upload import gather_upload_to_campusnet
    # gather_upload_to_campusnet(Report3())
    evaluate_report_student(Report3())