GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

PeriodPriceModifierFactory   A
last analyzed

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 10
1
# -*- coding: utf-8 -*-
2
import datetime
3
4
import factory
5
from factory.fuzzy import FuzzyDecimal
6
7
from reservable_pricing.models import PeriodPriceModifier
8
from shoop.testing.factories import ProductFactory
9
10
11
class PeriodPriceModifierFactory(factory.DjangoModelFactory):
12
    class Meta:
13
        model = PeriodPriceModifier
14
15
    product = factory.SubFactory(ProductFactory)
16
    modifier = FuzzyDecimal(1, 200)
17
    start_date = datetime.date(2015, 11, 1)
18
    end_date = datetime.date(2015, 11, 30)
19