def setup_database(): db = Database() db.create() user_controller = UserController() user_controller.sign_user(username=SU_NAME, email=None, password=SU_PASS, superuser=True) text_controller = TextController() text_controller.add_text('So I\'m two inches away from her. \ Her luscious lips part. \ Just as I\'m about to kiss her, she looks at me and she says, \ "What\'s your name?" Gogol Ganguli. End of seduction 101.') text_controller.add_text('Speed test text to complete') text_controller.add_text('Another speed test for you!') tutorial_controller = TutorialController() tutorial_controller.add_tutorial('aa ss dd ff jj kk ll ;;') tutorial_controller.add_tutorial('as as df df jk jk l; l;') tutorial_controller.add_tutorial('asdf asdf jkl; jkl;') tutorial_controller.add_tutorial('fdsa fdsa ;lkj ;lkj') tutorial_controller.add_tutorial('jkl; jkl; asdf asdf') tutorial_controller.add_tutorial(';lkj ;lkj fdsa fdsa') tutorial_controller.add_tutorial('ee ii ee ii') tutorial_controller.add_tutorial('ei ei ie ie') tutorial_controller.add_tutorial('fefe fefe efef efef')
def setup_database(): db = Database() db.create() # db.insert() controller = UserController() controller.sign_user(username=SU_NAME, email=None, password=SU_PASS, superuser=True) controller = MovieController() controller.add_movie('The Hunger Games: Catching Fire', 7.9) controller.add_movie('Wreck-It Ralph', 7.8) controller.add_movie('Her', 8.3) controller = ProjectionController() controller.add_projection(1, '3D', '2020-04-01', '19:10') controller.add_projection(1, '2D', '2020-04-01', '19:00') controller.add_projection(1, '4DX', '2020-04-02', '21:00') controller.add_projection(3, '2D', '2020-04-05', '20:20') controller.add_projection(2, '3D', '2020-04-02', '22:00') controller.add_projection(2, '2D', '2020-04-02', '19:30')