Enabled more of HACKING

This commit is contained in:
Monty Taylor 2013-07-15 13:48:50 -04:00
parent 31ca1960c0
commit 8103db2161
3 changed files with 12 additions and 8 deletions

View File

@ -10,7 +10,6 @@ from django.test import TestCase
class SimpleTest(TestCase): class SimpleTest(TestCase):
def test_basic_addition(self): def test_basic_addition(self):
""" """Tests that 1 + 1 always equals 2.
Tests that 1 + 1 always equals 2.
""" """
self.assertEqual(1 + 1, 2) self.assertEqual(1 + 1, 2)

View File

@ -14,13 +14,18 @@
# under the License. # under the License.
from django.contrib.auth.decorators import login_required from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_POST from django.contrib.auth.models import User
from django.http import HttpResponseRedirect from django.http import HttpResponseRedirect
from django.shortcuts import render from django.shortcuts import render
from django.contrib.auth.models import User from django.views.decorators.http import require_POST
from storyboard.projects.models import Project, Milestone, Series from storyboard.projects.models import Milestone
from storyboard.stories.models import Story, Task, Comment, StoryTag from storyboard.projects.models import Project
from storyboard.projects.models import Series
from storyboard.stories.models import Comment
from storyboard.stories.models import Story
from storyboard.stories.models import StoryTag
from storyboard.stories.models import Task
def dashboard(request): def dashboard(request):
@ -247,5 +252,5 @@ def edit_story(request, storyid):
comment_type=comment_type) comment_type=comment_type)
newcomment.save() newcomment.save()
except KeyError as e: except KeyError as e:
print e print(e)
return HttpResponseRedirect('/story/%s' % story.id) return HttpResponseRedirect('/story/%s' % story.id)

View File

@ -24,6 +24,6 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
downloadcache = ~/cache/pip downloadcache = ~/cache/pip
[flake8] [flake8]
ignore = E125,E128,H ignore = E125,E128,H102,H30
show-source = True show-source = True
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build