Skip to content

Commit

Permalink
Remove unused Calendar objects from tests
Browse files Browse the repository at this point in the history
The created calendar objects are unused. In one case, the test's
self.cal is used instead. In the other, the value is completely unused.
  • Loading branch information
kimarakov committed Jan 3, 2018
1 parent 8ac3b66 commit 251e1c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions tests/test_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@


class TestEvent(TestCase):

def setUp(self):
Calendar.objects.create(name="MyCal")

def __create_event(self, title, start, end, cal):
return Event.objects.create(
title=title,
Expand Down
1 change: 0 additions & 1 deletion tests/test_templatetags.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def test_create_event_url(self):
self.assertEqual(query_string['create_event_url'], escape(expected))

def test_all_day_event_cook_slots(self):
Calendar.objects.create(name='MyCal', slug='MyCalSlug')
start = datetime.datetime(
datetime.datetime.now().year, 1, 5, 0, 0, tzinfo=pytz.utc)
end = datetime.datetime(
Expand Down

0 comments on commit 251e1c9

Please sign in to comment.