Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #854 from johngian/fix-tests
Browse files Browse the repository at this point in the history
Add default RESOLUTION and STATUS in BugFactory.
  • Loading branch information
johngian committed Nov 7, 2014
2 parents 240dd1f + ccbd25f commit 3cc6b84
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions remo/remozilla/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
CHANGE_DT = datetime.datetime(2012, 1, 1, tzinfo=utc)
CREATION_DT = datetime.datetime(2011, 1, 1, tzinfo=utc)
DUE_DT = datetime.datetime(2013, 1, 1, tzinfo=utc)
RESOLUTION = ['FIXED', 'INVALID', 'WONTFIX', 'DUPLICATE', 'WORKSFORME',
'INCOMPLETE']
STATUS = ['UNCONFIRMED', 'NEW', 'ASSIGNED', 'REOPENED', 'READY', 'RESOLVED',
'VERIFIED']


class BugFactory(factory.django.DjangoModelFactory):
Expand All @@ -29,8 +25,6 @@ class BugFactory(factory.django.DjangoModelFactory):
component = fuzzy.FuzzyChoice(COMPONENTS)
summary = 'Bug summary'
whiteboard = 'Bug whiteboard'
resolution = fuzzy.FuzzyChoice(RESOLUTION)
status = fuzzy.FuzzyChoice(STATUS)

@factory.post_generation
def add_cc_users(self, create, extracted, **kwargs):
Expand Down

0 comments on commit 3cc6b84

Please sign in to comment.