Example #1
0
def handle_razor_data_straight(manufacturer, model, product_page,
                               consolidator):
    # Going to have to handle the replacable ones manually
    razor_type = "Straight-Edge"
    uses_blade = False
    consolidator.add_razor(
        Razor(manufacturer, model, razor_type, uses_blade, False))
Example #2
0
def handle_feather_artist_club(manufacturer, model, product_page,
                               consolidator):
    if "Blades" in model:
        consolidator.add_blade(Blade(manufacturer, model))
    else:
        consolidator.add_razor(
            Razor(manufacturer, model, "Straight-Edge", True, False))
    def create_test_product_consolidator(self):
        product_consolidator = ProductConsolidator()

        pre_shave_1 = PreShave("Preshave 1 brand", "Preshave 1 model")
        product_consolidator.add_pre_shave(pre_shave_1)
        pre_shave_2 = PreShave("Preshave 2 brand", "Preshave 2 model")
        product_consolidator.add_pre_shave(pre_shave_2)
        pre_shave_3 = PreShave("Preshave 2 brand", "Preshave 3 model")
        product_consolidator.add_pre_shave(pre_shave_3)

        soap_1 = Soap("Soap 1 brand", "Soap 1 model")
        product_consolidator.add_soap(soap_1)
        soap_2 = Soap("Soap 1 brand", "Soap 2 model")
        product_consolidator.add_soap(soap_2)
        soap_3 = Soap("Soap 1 brand", "Soap 3 model")
        product_consolidator.add_soap(soap_3)

        brush = Brush("brush brand", "brush model")
        product_consolidator.add_brush(brush)

        razor_1 = Razor("Razor 1 brand", "Razor 1 model", "DE", True, False)
        product_consolidator.add_razor(razor_1)
        razor_2 = Razor("Razor 2 brand", "Razor 2 model", "Straight Blade",
                        False, False)
        product_consolidator.add_razor(razor_2)

        blade_1 = Blade("Blade 1 brand", "Blade 1 model")
        product_consolidator.add_blade(blade_1)
        blade_2 = Blade("Blade 1 brand", "Blade 2 model")
        product_consolidator.add_blade(blade_2)
        blade_3 = Blade("Blade 3 brand", "Blade 3 model")
        product_consolidator.add_blade(blade_3)
        blade_4 = Blade("Blade 4 brand", "Blade 4 model")
        product_consolidator.add_blade(blade_4)
        blade_5 = Blade("Blade 1 brand", "Blade 5 model")
        product_consolidator.add_blade(blade_5)

        post_shave_1 = PostShave("Post Shave 1 brand", "Post Shave 1 model")
        product_consolidator.add_post_shave(post_shave_1)
        post_shave_2 = PostShave("Post Shave 2 brand", "Post Shave 2 model")
        product_consolidator.add_post_shave(post_shave_2)

        after_shave_1 = AfterShave("AfterShave 1 brand", "AfterShave 1 model")
        product_consolidator.add_after_shave(after_shave_1)

        return product_consolidator
Example #4
0
def handle_razor_data_safety(manufacturer, model, product_page, consolidator):
    consolidator.add_razor(
        Razor(manufacturer, model, "DE", True, "Adjustable" in model))
Example #5
0
def handle_razor_data_straight(manufacturer, model, product_page, consolidator):
    consolidator.add_razor(Razor(manufacturer, model, "Straight-Edge", False, False))
Example #6
0
def handle_razor_data_shavette(manufacturer, model, product_page, consolidator):
    consolidator.add_razor(Razor(manufacturer, model, "Shavette", True, False))
Example #7
0
def handle_razor_data_safety(manufacturer, model, product_page, consolidator):
    consolidator.add_razor(Razor(manufacturer, model + " - Standard", "DE", True, False))
    consolidator.add_razor(Razor(manufacturer, model + " - Aggressive", "DE", True, False))
    consolidator.add_razor(Razor(manufacturer, model + " - Open Comb", "DE", True, False))
Example #8
0
def handle_razor_data_straight_uses_blade(manufacturer, model, product_page,
                                          consolidator):
    # Going to have to handle the replacable ones manually
    if "Kit" not in model:
        consolidator.add_razor(
            Razor(manufacturer, model, "Shavette", True, False))