def setUp(self):
     datetime_now = make_date_utc(datetime.datetime(2024, 1, 1, 0, 00))
     start_date = (datetime_now - datetime.timedelta(days=30)).date()
     end_date = (datetime_now + datetime.timedelta(days=30)).date()
     self.tax = StandardTaxFactory.create(tax_rate=10)
     self.test_currency_with_rounding = StandardCurrencyFactory.create(rounding=1)
     self.test_currency_without_rounding = StandardCurrencyFactory.create(
         rounding=None,
         description='Euro',
         short_name='EUR'
     )
     self.alternative_currency = self.test_currency_without_rounding
     self.customer_group = StandardCustomerGroupFactory.create()
     self.alternative_customer_group = AdvancedCustomerGroupFactory.create()
     self.customer = StandardCustomerFactory.create()
     self.customer.is_member_of.add(self.customer_group)
     self.customer.save()
     self.unit = StandardUnitFactory.create()
     self.alternative_unit = SmallUnitFactory.create()
     self.product_without_dates = StandardProductTypeFactory.create(
         product_type_identifier="A",
         tax=self.tax
     )
     self.price_without_customer_group = StandardPriceFactory.create(
         product_type=self.product_without_dates,
         customer_group=None,
         price=100,
         unit=self.unit,
         currency=self.test_currency_with_rounding,
         valid_from=start_date,
         valid_until=end_date
     )
    def setUp(self):
        datetime_now = make_date_utc(datetime.datetime(2024, 1, 1, 0, 00))
        start_date = (datetime_now - datetime.timedelta(days=30)).date()
        end_date_first_task = (datetime_now + datetime.timedelta(days=30)).date()
        end_date_second_task = (datetime_now + datetime.timedelta(days=60)).date()

        self.test_billing_cycle = StandardCustomerBillingCycleFactory.create()
        self.test_user = AdminUserFactory.create()
        self.test_unit = StandardUnitFactory.create()
        self.test_customer_group = StandardCustomerGroupFactory.create()
        self.test_customer = StandardCustomerFactory.create(is_member_of=(self.test_customer_group,))
        self.test_currency = StandardCurrencyFactory.create(
            rounding="0.05"
        )
        self.human_resource = StandardHumanResourceFactory.create()
        self.human_resource_two = StandardHumanResourceFactory.create()
        self.resource_price = StandardResourcePriceFactory.create(
            resource=self.human_resource,
            unit=self.test_unit,
            currency=self.test_currency,
            customer_group=self.test_customer_group,
            price="120",
        )
        self.resource_price_agreement = StandardResourcePriceFactory.create(
            resource=self.human_resource_two,
            unit=self.test_unit,
            currency=self.test_currency,
            customer_group=self.test_customer_group,
            price="90",
        )
        self.test_reporting_period = StandardReportingPeriodFactory.create()
        self.test_1st_task = StandardTaskFactory.create(
            title="1st Test Task",
            project=self.test_reporting_period.project
        )
        self.agreement_1st_task = StandardAgreementToTaskFactory(
            amount="3.50",
            task=self.test_1st_task,
            resource=self.human_resource,
            unit=self.test_unit,
            costs=self.resource_price_agreement
        )
        self.estimation_1st_task = StandardHumanResourceEstimationToTaskFactory(
            resource=self.human_resource,
            task=self.test_1st_task,
            date_from=start_date,
            date_until=end_date_first_task,
            amount=20
        )
        self.test_2nd_task = StandardTaskFactory.create(
            title="2nd Test Task",
            project=self.test_reporting_period.project
        )
        self.estimation_2nd_task = StandardHumanResourceEstimationToTaskFactory(
            resource=self.human_resource,
            task=self.test_2nd_task,
            date_from=start_date,
            date_until=end_date_second_task,
            amount=30
        )
Beispiel #3
0
    def setUp(self):
        datetime_now = make_date_utc(datetime.datetime(2024, 1, 1, 0, 00))
        start_date = (datetime_now - datetime.timedelta(days=30)).date()
        end_date_first_task = (datetime_now +
                               datetime.timedelta(days=30)).date()
        end_date_second_task = (datetime_now +
                                datetime.timedelta(days=60)).date()

        self.test_billing_cycle = StandardCustomerBillingCycleFactory.create()
        self.test_user = AdminUserFactory.create()
        self.test_customer_group = StandardCustomerGroupFactory.create()
        self.test_customer = StandardCustomerFactory.create(
            is_member_of=(self.test_customer_group, ))
        self.test_currency = StandardCurrencyFactory.create()
        self.human_resource = StandardHumanResourceFactory.create()
        self.test_reporting_period = StandardReportingPeriodFactory.create()
        self.test_1st_task = StandardTaskFactory.create(
            title="1st Test Task", project=self.test_reporting_period.project)
        self.estimation_1st_task = StandardHumanResourceEstimationToTaskFactory(
            task=self.test_1st_task,
            date_from=start_date,
            date_until=end_date_first_task)
        self.test_2nd_task = StandardTaskFactory.create(
            title="2nd Test Task", project=self.test_reporting_period.project)
        self.estimation_2nd_task = StandardHumanResourceEstimationToTaskFactory(
            task=self.test_2nd_task,
            date_from=start_date,
            date_until=end_date_second_task)
    def setUp(self):
        datetime_now = make_date_utc(datetime.datetime(2024, 1, 1, 0, 00))
        start_date = (datetime_now - datetime.timedelta(days=30)).date()
        end_date_first_task = (datetime_now +
                               datetime.timedelta(days=30)).date()
        end_date_second_task = (datetime_now +
                                datetime.timedelta(days=60)).date()

        self.test_billing_cycle = StandardCustomerBillingCycleFactory.create()
        self.test_user = AdminUserFactory.create()
        self.test_customer_group = StandardCustomerGroupFactory.create()
        self.test_customer = StandardCustomerFactory.create(
            is_member_of=(self.test_customer_group, ))
        self.test_currency = StandardCurrencyFactory.create()
        self.test_user_extension = StandardUserExtensionFactory.create(
            user=self.test_user)
        self.test_reporting_period = StandardReportingPeriodFactory.create()
        self.test_1st_task = StandardTaskFactory.create(
            title="1st Test Task",
            planned_start_date=start_date,
            planned_end_date=end_date_first_task,
            project=self.test_reporting_period.project)
        self.test_2nd_task = StandardTaskFactory.create(
            title="2nd Test Task",
            planned_start_date=start_date,
            planned_end_date=end_date_second_task,
            project=self.test_reporting_period.project)
Beispiel #5
0
    def setUp(self):
        datetime_now = datetime.datetime(2024, 1, 1, 0, 00)
        datetime_now = pytz.timezone("UTC").localize(datetime_now, is_dst=None)
        start_date = (datetime_now -
                      datetime.timedelta(days=30)).date().__str__()
        end_date_first_task = (datetime_now +
                               datetime.timedelta(days=30)).date().__str__()
        end_date_second_task = (datetime_now +
                                datetime.timedelta(days=60)).date().__str__()

        self.test_billing_cycle = StandardCustomerBillingCycleFactory.create()
        self.test_user = AdminUserFactory.create()
        self.test_customer_group = StandardCustomerGroupFactory.create()
        self.test_customer = StandardCustomerFactory.create(
            is_member_of=(self.test_customer_group, ))
        self.test_currency = StandardCurrencyFactory.create()
        self.test_user_extension = StandardUserExtensionFactory.create(
            user=self.test_user)
        self.test_reporting_period = StandardReportingPeriodFactory.create()
        self.test_1st_task = StandardTaskFactory.create(
            title="1st Test Task",
            project=self.test_reporting_period.project,
            last_status_change=datetime.date(2024, 6, 15))
        self.estimation_1st_task = StandardHumanResourceEstimationToTaskFactory(
            task=self.test_1st_task,
            date_from=start_date,
            date_until=end_date_first_task)
        self.test_2nd_task = StandardTaskFactory.create(
            title="2nd Test Task",
            project=self.test_reporting_period.project,
            last_status_change=datetime.date(2024, 6, 15))
        self.estimation_2nd_task = StandardHumanResourceEstimationToTaskFactory(
            task=self.test_2nd_task,
            date_from=start_date,
            date_until=end_date_second_task)
Beispiel #6
0
 def setUp(self):
     firefox_options = webdriver.firefox.options.Options()
     firefox_options.set_headless(headless=True)
     self.selenium = webdriver.Firefox(firefox_options=firefox_options)
     self.test_user = AdminUserFactory.create()
     self.test_customer_group = StandardCustomerGroupFactory.create()
     self.test_customer = StandardCustomerFactory.create(is_member_of=(self.test_customer_group,))
     self.test_currency = StandardCurrencyFactory.create()
     self.test_user_extension = StandardUserExtensionFactory.create(user=self.test_user)
     self.test_customer_group = StandardCustomerGroupFactory.create()
     self.test_customer = StandardCustomerFactory.create(is_member_of=(self.test_customer_group,))
     self.test_currency = StandardCurrencyFactory.create()
     self.test_reporting_period = StandardReportingPeriodFactory.create()
     self.test_1st_task = StandardTaskFactory.create(title="1st Test Task",
                                                     project=self.test_reporting_period.project,
                                                     )
    def setUp(self):
        datetime_now = datetime.datetime(2024, 1, 1, 0, 00)
        datetime_now = pytz.timezone("UTC").localize(datetime_now, is_dst=None)
        start_date = (datetime_now - datetime.timedelta(days=30)).date().__str__()
        end_date_first_task = (datetime_now + datetime.timedelta(days=30)).date().__str__()
        end_date_second_task = (datetime_now + datetime.timedelta(days=60)).date().__str__()

        self.test_billing_cycle = StandardCustomerBillingCycleFactory.create()
        self.test_user = AdminUserFactory.create()
        self.test_customer_group = StandardCustomerGroupFactory.create()
        self.test_customer = StandardCustomerFactory.create(is_member_of=(self.test_customer_group,))
        self.test_currency = StandardCurrencyFactory.create()
        self.test_user_extension = StandardUserExtensionFactory.create(user=self.test_user)
        self.test_reporting_period = StandardReportingPeriodFactory.create()
        self.test_1st_task = StandardTaskFactory.create(title="1st Test Task",
                                                        project=self.test_reporting_period.project,
                                                        last_status_change=datetime.date(2024, 6, 15)
                                                        )
        self.estimation_1st_task = StandardHumanResourceEstimationToTaskFactory(task=self.test_1st_task,
                                                                                date_from=start_date,
                                                                                date_until=end_date_first_task)
        self.test_2nd_task = StandardTaskFactory.create(title="2nd Test Task",
                                                        project=self.test_reporting_period.project,
                                                        last_status_change=datetime.date(2024, 6, 15))
        self.estimation_2nd_task = StandardHumanResourceEstimationToTaskFactory(task=self.test_2nd_task,
                                                                                date_from=start_date,
                                                                                date_until=end_date_second_task)
 def setUp(self):
     firefox_options = webdriver.firefox.options.Options()
     firefox_options.set_headless(headless=True)
     self.selenium = webdriver.Firefox(firefox_options=firefox_options)
     self.test_user = AdminUserFactory.create()
     self.test_customer_group = StandardCustomerGroupFactory.create()
     self.test_customer = StandardCustomerFactory.create(is_member_of=(self.test_customer_group,))
     self.test_currency = StandardCurrencyFactory.create()
     self.test_user_extension = StandardUserExtensionFactory.create(user=self.test_user)
     self.test_human_resource = StandardHumanResourceFactory.create(user=self.test_user_extension)
     self.test_customer_group = StandardCustomerGroupFactory.create()
     self.test_customer = StandardCustomerFactory.create(is_member_of=(self.test_customer_group,))
     self.test_currency = StandardCurrencyFactory.create()
     self.test_reporting_period = StandardReportingPeriodFactory.create()
     self.test_1st_task = StandardTaskFactory.create(title="1st Test Task",
                                                     project=self.test_reporting_period.project,
                                                     )
    def setUp(self):

        self.test_billing_cycle = StandardCustomerBillingCycleFactory.create()
        self.test_user = AdminUserFactory.create()
        self.test_customer_group = StandardCustomerGroupFactory.create()
        self.test_customer = StandardCustomerFactory.create(is_member_of=(self.test_customer_group,))
        self.test_currency = StandardCurrencyFactory.create()
        self.test_user_extension = StandardUserExtensionFactory.create(user=self.test_user)
        self.test_reporting_period = StandardReportingPeriodFactory.create()
Beispiel #10
0
 def setUp(self):
     firefox_options = webdriver.firefox.options.Options()
     firefox_options.set_headless(headless=True)
     self.selenium = webdriver.Firefox(firefox_options=firefox_options)
     self.test_user = AdminUserFactory.create()
     self.test_customer_group = StandardCustomerGroupFactory.create()
     self.test_customer = StandardCustomerFactory.create(is_member_of=(self.test_customer_group,))
     self.test_currency = StandardCurrencyFactory.create()
     self.test_user_extension = StandardUserExtensionFactory.create(user=self.test_user)
Beispiel #11
0
    def setUp(self):
        datetime_now = make_date_utc(datetime.datetime(2024, 1, 1, 0, 00))
        start_date = (datetime_now - datetime.timedelta(days=30)).date()
        end_date_first_task = (datetime_now +
                               datetime.timedelta(days=30)).date()
        end_date_second_task = (datetime_now +
                                datetime.timedelta(days=60)).date()

        self.test_billing_cycle = StandardCustomerBillingCycleFactory.create()
        self.test_user = AdminUserFactory.create()
        self.test_unit = StandardUnitFactory.create()
        self.test_customer_group = StandardCustomerGroupFactory.create()
        self.test_customer = StandardCustomerFactory.create(
            is_member_of=(self.test_customer_group, ))
        self.test_currency = StandardCurrencyFactory.create(rounding="0.05")
        self.human_resource = StandardHumanResourceFactory.create()
        self.human_resource_two = StandardHumanResourceFactory.create()
        self.resource_price = StandardResourcePriceFactory.create(
            resource=self.human_resource,
            unit=self.test_unit,
            currency=self.test_currency,
            customer_group=self.test_customer_group,
            price="120",
        )
        self.resource_price_agreement = StandardResourcePriceFactory.create(
            resource=self.human_resource_two,
            unit=self.test_unit,
            currency=self.test_currency,
            customer_group=self.test_customer_group,
            price="90",
        )
        self.test_project = StandardProjectFactory.create()
        self.test_reporting_period = StandardReportingPeriodFactory.create(
            project=self.test_project)
        self.test_1st_task = StandardTaskFactory.create(
            title="1st Test Task", project=self.test_project)
        self.agreement_1st_task = StandardAgreementToTaskFactory(
            amount="3.50",
            task=self.test_1st_task,
            resource=self.human_resource,
            unit=self.test_unit,
            costs=self.resource_price_agreement)
        self.estimation_1st_task = StandardHumanResourceEstimationToTaskFactory(
            resource=self.human_resource,
            task=self.test_1st_task,
            date_from=start_date,
            date_until=end_date_first_task,
            amount=20)
        self.test_2nd_task = StandardTaskFactory.create(
            title="2nd Test Task", project=self.test_project)
        self.estimation_2nd_task = StandardHumanResourceEstimationToTaskFactory(
            resource=self.human_resource,
            task=self.test_2nd_task,
            date_from=start_date,
            date_until=end_date_second_task,
            amount=30)
    def setUp(self):

        self.test_billing_cycle = StandardCustomerBillingCycleFactory.create()
        self.test_user = AdminUserFactory.create()
        self.test_customer_group = StandardCustomerGroupFactory.create()
        self.test_unit = StandardUnitFactory.create()
        self.test_customer = StandardCustomerFactory.create(is_member_of=(self.test_customer_group,))
        self.test_currency = StandardCurrencyFactory.create()
        self.test_user_extension = StandardUserExtensionFactory.create(user=self.test_user)
        self.test_project = StandardProjectFactory.create()
        self.test_human_resource = StandardHumanResourceFactory.create()
    def setUp(self):
        datetime_now = make_date_utc(datetime.datetime(2024, 1, 1, 0, 00))
        start_date = (datetime_now - datetime.timedelta(days=30))
        end_date_first_task = (datetime_now + datetime.timedelta(days=30))
        end_date_second_task = (datetime_now + datetime.timedelta(days=60))

        self.test_billing_cycle = StandardCustomerBillingCycleFactory.create()
        self.test_customer_group = StandardCustomerGroupFactory.create()
        self.test_customer = StandardCustomerFactory.create(is_member_of=(self.test_customer_group,))
        self.test_currency = StandardCurrencyFactory.create()
        self.human_resource = StandardHumanResourceFactory.create()
        self.test_reporting_period = StandardReportingPeriodFactory.create()
        self.test_1st_task = StandardTaskFactory.create(title="1st Test Task",
                                                        project=self.test_reporting_period.project)
        self.estimation_1st_task = StandardHumanResourceEstimationToTaskFactory(task=self.test_1st_task,
                                                                                date_from=start_date,
                                                                                date_until=end_date_first_task)
        self.test_2nd_task = StandardTaskFactory.create(title="2nd Test Task",
                                                        project=self.test_reporting_period.project)
        self.estimation_2nd_task = StandardHumanResourceEstimationToTaskFactory(task=self.test_2nd_task,
                                                                                date_from=start_date,
                                                                                date_until=end_date_second_task)
 def setUp(self):
     datetime_now = make_date_utc(datetime.datetime(2024, 1, 1, 0, 00))
     start_date = (datetime_now - datetime.timedelta(days=30)).date()
     end_date = (datetime_now + datetime.timedelta(days=30)).date()
     self.tax = StandardTaxFactory.create(tax_rate=10)
     self.test_currency_with_rounding = StandardCurrencyFactory.create(rounding=1)
     self.test_currency_without_rounding = StandardCurrencyFactory.create(
         rounding=None,
         description='Euro',
         short_name='EUR'
     )
     self.alternative_currency = self.test_currency_without_rounding
     self.customer_group = StandardCustomerGroupFactory.create()
     self.alternative_customer_group = AdvancedCustomerGroupFactory.create()
     self.customer = StandardCustomerFactory.create()
     self.customer.is_member_of.add(self.customer_group)
     self.customer.save()
     self.unit = StandardUnitFactory.create()
     self.alternative_unit = SmallUnitFactory.create()
     self.product_without_dates = StandardProductTypeFactory.create(
         product_type_identifier="A",
         tax=self.tax
     )
     self.product_without_date_from = StandardProductTypeFactory.create(
         product_type_identifier="B",
         tax=self.tax
     )
     self.product_without_date_until = StandardProductTypeFactory.create(
         product_type_identifier="C",
         tax=self.tax
     )
     self.product_without_customer_group = StandardProductTypeFactory.create(
         product_type_identifier="D",
         tax=self.tax
     )
     self.product_with_currency_rounding = StandardProductTypeFactory.create(
         product_type_identifier="E",
         tax=self.tax
     )
     self.product_without_currency_rounding = StandardProductTypeFactory.create(
         product_type_identifier="F",
         tax=self.tax
     )
     self.product_with_alternative_customer_group = StandardProductTypeFactory.create(
         product_type_identifier="G",
         tax=self.tax
     )
     self.product_with_alternative_unit = StandardProductTypeFactory.create(
         product_type_identifier="H",
         tax=self.tax
     )
     self.product_with_alternative_currency = StandardProductTypeFactory.create(
         product_type_identifier="I",
         tax=self.tax
     )
     self.price_without_customer_group = StandardPriceFactory.create(
         product_type=self.product_without_customer_group,
         customer_group=None,
         price=100,
         unit=self.unit,
         currency=self.test_currency_with_rounding,
         valid_from=start_date,
         valid_until=end_date
     )
     self.price_without_dates = StandardPriceFactory.create(
         product_type=self.product_without_dates,
         customer_group=self.customer_group,
         valid_from=None,
         valid_until=None,
         unit=self.unit,
         currency=self.test_currency_with_rounding,
         price=80
     )
     self.price_without_date_to = StandardPriceFactory.create(
         product_type=self.product_without_date_until,
         customer_group=self.customer_group,
         valid_from=start_date,
         valid_until=None,
         unit=self.unit,
         currency=self.test_currency_with_rounding,
         price=130
     )
     self.price_without_date_from = StandardPriceFactory.create(
         product_type=self.product_without_date_from,
         customer_group=self.customer_group,
         valid_from=None,
         valid_until=end_date,
         unit=self.unit,
         currency=self.test_currency_with_rounding,
         price=50
     )
     self.price_without_date_from = StandardPriceFactory.create(
         product_type=self.product_without_currency_rounding,
         currency=self.test_currency_without_rounding,
         customer_group=self.customer_group,
         price=25,
         unit=self.unit,
         valid_from=start_date,
         valid_until=end_date
     )
     self.price_without_date_from = StandardPriceFactory.create(
         product_type=self.product_with_currency_rounding,
         currency=self.test_currency_with_rounding,
         customer_group=self.customer_group,
         price=33,
         unit=self.unit,
         valid_from=start_date,
         valid_until=end_date
     )
     self.price_with_alternative_customer_group = StandardPriceFactory.create(
         product_type=self.product_with_alternative_customer_group,
         customer_group=self.alternative_customer_group,
         valid_from=start_date,
         valid_until=end_date,
         unit=self.unit,
         currency=self.test_currency_with_rounding,
         price=80
     )
     self.customer_group_transform = StandardCustomerGroupTransformFactory.create(
         from_customer_group=self.alternative_customer_group,
         to_customer_group=self.customer_group,
         product_type=self.product_with_alternative_customer_group,
         factor=0.50
     )
     self.price_with_alternative_currency = StandardPriceFactory.create(
         product_type=self.product_with_alternative_currency,
         customer_group=self.customer_group,
         valid_from=start_date,
         valid_until=end_date,
         unit=self.unit,
         currency=self.alternative_currency,
         price=80
     )
     self.currency_transform = StandardCurrencyTransformFactory.create(
         from_currency=self.alternative_currency,
         to_currency=self.test_currency_with_rounding,
         product_type=self.product_with_alternative_currency,
         factor=0.50
     )
     self.price_with_alternative_unit = StandardPriceFactory.create(
         product_type=self.product_with_alternative_unit,
         customer_group=self.customer_group,
         valid_from=start_date,
         valid_until=end_date,
         unit=self.alternative_unit,
         currency=self.test_currency_with_rounding,
         price=80
     )
     self.currency_transform = StandardUnitTransformFactory.create(
         from_unit=self.alternative_unit,
         to_unit=self.unit,
         product_type=self.product_with_alternative_unit,
         factor=0.50
     )
 def setUp(self):
     datetime_now = make_date_utc(datetime.datetime(2024, 1, 1, 0, 00))
     start_date = (datetime_now - datetime.timedelta(days=30)).date()
     end_date = (datetime_now + datetime.timedelta(days=30)).date()
     self.tax = StandardTaxFactory.create(tax_rate=10)
     self.test_currency_with_rounding = StandardCurrencyFactory.create(
         rounding=1)
     self.test_currency_without_rounding = StandardCurrencyFactory.create(
         rounding=None, description='Euro', short_name='EUR')
     self.alternative_currency = self.test_currency_without_rounding
     self.customer_group = StandardCustomerGroupFactory.create()
     self.alternative_customer_group = AdvancedCustomerGroupFactory.create()
     self.customer = StandardCustomerFactory.create()
     self.customer.is_member_of.add(self.customer_group)
     self.customer.save()
     self.unit = StandardUnitFactory.create()
     self.alternative_unit = SmallUnitFactory.create()
     self.product_without_dates = StandardProductTypeFactory.create(
         product_type_identifier="A", tax=self.tax)
     self.product_without_date_from = StandardProductTypeFactory.create(
         product_type_identifier="B", tax=self.tax)
     self.product_without_date_until = StandardProductTypeFactory.create(
         product_type_identifier="C", tax=self.tax)
     self.product_without_customer_group = StandardProductTypeFactory.create(
         product_type_identifier="D", tax=self.tax)
     self.product_with_currency_rounding = StandardProductTypeFactory.create(
         product_type_identifier="E", tax=self.tax)
     self.product_without_currency_rounding = StandardProductTypeFactory.create(
         product_type_identifier="F", tax=self.tax)
     self.product_with_alternative_customer_group = StandardProductTypeFactory.create(
         product_type_identifier="G", tax=self.tax)
     self.product_with_alternative_unit = StandardProductTypeFactory.create(
         product_type_identifier="H", tax=self.tax)
     self.product_with_alternative_currency = StandardProductTypeFactory.create(
         product_type_identifier="I", tax=self.tax)
     self.price_without_customer_group = StandardPriceFactory.create(
         product_type=self.product_without_customer_group,
         customer_group=None,
         price=100,
         unit=self.unit,
         currency=self.test_currency_with_rounding,
         valid_from=start_date,
         valid_until=end_date)
     self.price_without_dates = StandardPriceFactory.create(
         product_type=self.product_without_dates,
         customer_group=self.customer_group,
         valid_from=None,
         valid_until=None,
         unit=self.unit,
         currency=self.test_currency_with_rounding,
         price=80)
     self.price_without_date_to = StandardPriceFactory.create(
         product_type=self.product_without_date_until,
         customer_group=self.customer_group,
         valid_from=start_date,
         valid_until=None,
         unit=self.unit,
         currency=self.test_currency_with_rounding,
         price=130)
     self.price_without_date_from = StandardPriceFactory.create(
         product_type=self.product_without_date_from,
         customer_group=self.customer_group,
         valid_from=None,
         valid_until=end_date,
         unit=self.unit,
         currency=self.test_currency_with_rounding,
         price=50)
     self.price_without_date_from = StandardPriceFactory.create(
         product_type=self.product_without_currency_rounding,
         currency=self.test_currency_without_rounding,
         customer_group=self.customer_group,
         price=25,
         unit=self.unit,
         valid_from=start_date,
         valid_until=end_date)
     self.price_without_date_from = StandardPriceFactory.create(
         product_type=self.product_with_currency_rounding,
         currency=self.test_currency_with_rounding,
         customer_group=self.customer_group,
         price=33,
         unit=self.unit,
         valid_from=start_date,
         valid_until=end_date)
     self.price_with_alternative_customer_group = StandardPriceFactory.create(
         product_type=self.product_with_alternative_customer_group,
         customer_group=self.alternative_customer_group,
         valid_from=start_date,
         valid_until=end_date,
         unit=self.unit,
         currency=self.test_currency_with_rounding,
         price=80)
     self.customer_group_transform = StandardCustomerGroupTransformFactory.create(
         from_customer_group=self.alternative_customer_group,
         to_customer_group=self.customer_group,
         product_type=self.product_with_alternative_customer_group,
         factor=0.50)
     self.price_with_alternative_currency = StandardPriceFactory.create(
         product_type=self.product_with_alternative_currency,
         customer_group=self.customer_group,
         valid_from=start_date,
         valid_until=end_date,
         unit=self.unit,
         currency=self.alternative_currency,
         price=80)
     self.currency_transform = StandardCurrencyTransformFactory.create(
         from_currency=self.alternative_currency,
         to_currency=self.test_currency_with_rounding,
         product_type=self.product_with_alternative_currency,
         factor=0.50)
     self.price_with_alternative_unit = StandardPriceFactory.create(
         product_type=self.product_with_alternative_unit,
         customer_group=self.customer_group,
         valid_from=start_date,
         valid_until=end_date,
         unit=self.alternative_unit,
         currency=self.test_currency_with_rounding,
         price=80)
     self.currency_transform = StandardUnitTransformFactory.create(
         from_unit=self.alternative_unit,
         to_unit=self.unit,
         product_type=self.product_with_alternative_unit,
         factor=0.50)