Esempio n. 1
0
    def setup_class(cls):
        """ Add database fixtures """

        build_menu(id=34)
        build_dish(id=1, menu_id=34)
        build_dish(id=2, menu_id=34)
        build_dish(id=3, menu_id=34)
        build_dish(id=4)    
        
        db.session.commit()
Esempio n. 2
0
    def setup_class(cls):
        """ Add database fixtures """

        build_menu(id=34)
        build_dish(id=1, menu_id=34)
        build_dish(id=2, menu_id=34)
        build_dish(id=3, menu_id=34)
        build_dish(id=4)

        db.session.commit()
Esempio n. 3
0
    def setup_class(cls):
        """ Add database fixtures """

        build_menu(id=5)

        build_menu(id=10)
        build_dish(id=20, menu_id=10)
        build_dish(id=21, menu_id=10)

        db.session.commit()
Esempio n. 4
0
    def setup_class(cls):
        """ Add database fixtures """

        build_menu(id=5)
        
        build_menu(id=10)
        build_dish(id=20, menu_id=10)
        build_dish(id=21, menu_id=10)
        
        db.session.commit()
Esempio n. 5
0
    def setup_class(cls):
        """ Add database fixtures """

        build_restaurant(id=10)
        build_menu(id=1, restaurant_id=10)
        build_menu(id=2, restaurant_id=10)
        build_menu(id=4)
        build_menu(id=8, restaurant_id=10)

        db.session.commit()
Esempio n. 6
0
    def setup_class(cls):
        """ Add database fixtures """

        build_restaurant(id=10)
        build_menu(id=1, restaurant_id=10)
        build_menu(id=2, restaurant_id=10)
        build_menu(id=4)
        build_menu(id=8, restaurant_id=10)
        
        db.session.commit()
Esempio n. 7
0
    def setup_class(cls):
        """ Add database fixtures """

        build_menu(id=5)
        db.session.commit()
Esempio n. 8
0
    def setup_class(cls):
        """ Add database fixtures """

        build_menu(id=12)
        db.session.commit()