示例#1
0
    def setup_class(cls):
        """ Add database fixtures """

        build_country(id=1, name="Canada")
        r10 = build_restaurateur(id=10, mail="*****@*****.**")
        build_restaurant(id=12, restaurateur=r10)
        db.session.commit()
示例#2
0
    def setup_class(cls):
        """ Add database fixtures """

        build_country(id=1, name="Canada")
        r10 = build_restaurateur(id=10, mail="*****@*****.**")
        build_restaurant(id=12, restaurateur=r10)
        db.session.commit()
示例#3
0
    def setup_class(cls):
        """ Add database fixtures """

        c10 = build_country(id=10, name="Canada")

        r1 = build_restaurateur(id=10)
        r2 = build_restaurateur(id=15)
        r3 = build_restaurateur(id=20)
        r4 = build_restaurateur(id=25)

        build_restaurant(id=5, name="La banquise", restaurateur=r1)
        build_restaurant(id=7, name="Le tigre rouge", restaurateur=r3)
        build_restaurant(id=9, name="Le lion du sud", restaurateur=r4)
        build_restaurant(id=11, name="Le lion du sud")
        build_restaurant(id=12, name="Les rois mages", country=c10)

        db.session.commit()
示例#4
0
    def setup_class(cls):
        """ Add database fixtures """

        c10 = build_country(id=10, name="Canada")

        r1 = build_restaurateur(id=10)
        r2 = build_restaurateur(id=15)
        r3 = build_restaurateur(id=20)
        r4 = build_restaurateur(id=25)

        build_restaurant(id=5, name="La banquise", restaurateur=r1)
        build_restaurant(id=7, name="Le tigre rouge", restaurateur=r3)
        build_restaurant(id=9, name="Le lion du sud", restaurateur=r4)
        build_restaurant(id=11, name="Le lion du sud")
        build_restaurant(id=12, name="Les rois mages", country=c10)

        db.session.commit()
示例#5
0
    def setup_class(cls):
        """ Add database fixtures """

        c1 = build_country(id=1, name="Canada")

        # Test 1
        build_restaurateur(id=5)

        # Test 2
        build_restaurateur(id=6)
        build_restaurant(id=2)

        # Test
        r7 = build_restaurateur(id=7)
        r8 = build_restaurateur(id=8)
        build_restaurant(id=3, restaurateur=r8)

        # Test without country
        r9 = build_restaurateur(id=9, country=c1)

        db.session.commit()
示例#6
0
    def setup_class(cls):
        """ Add database fixtures """

        c1 = build_country(id=1, name="Canada")

        # Test 1
        build_restaurateur(id=5)

        # Test 2
        build_restaurateur(id=6)
        build_restaurant(id=2)

        # Test
        r7 = build_restaurateur(id=7)
        r8 = build_restaurateur(id=8)
        build_restaurant(id=3, restaurateur=r8)

        # Test without country
        r9 = build_restaurateur(id=9, country=c1)

        db.session.commit()
示例#7
0
    def setup_class(cls):
        """ Add database fixtures """

        c1 = build_country(id=1, name="Canada")
        build_entrepreneur(id=5)
        db.session.commit()
示例#8
0
    def setup_class(cls):
        """ Add database fixtures """

        c1 = build_country(id=1, name="Canada")
        build_address(id=5)
        db.session.commit()
示例#9
0
    def setup_class(cls):
        """ Add database fixtures """

        build_country(id=1)
        db.session.commit()
示例#10
0
    def setup_class(cls):
        """ Add database fixtures """

        build_country(id=1, name="Canada")
        build_client(id=10, mail="*****@*****.**")
        db.session.commit()
示例#11
0
    def setup_class(cls):
        """ Add database fixtures """

        build_country(id=1)
        build_country(id=2)
        db.session.commit()
示例#12
0
    def setup_class(cls):
        """ Add database fixtures """

        build_country(id=1, name="Canada")
        build_restaurateur(id=33)
        db.session.commit()
示例#13
0
    def setup_class(cls):
        """ Add database fixtures """

        build_country(id=1, name="Canada")
        db.session.commit()
示例#14
0
    def setup_class(cls):
        """ Add database fixtures """

        build_country(id=1, name="Canada")
        build_livreur(id=10, mail="*****@*****.**")
        db.session.commit()
示例#15
0
    def setup_class(cls):
        """ Add database fixtures """

        country = build_country(id=1)
        build_client(id=1, country=country)
        db.session.commit()