From 251e1c9ec01419c9a963dc7e6a0c4b23935b9390 Mon Sep 17 00:00:00 2001 From: kimarakov Date: Mon, 1 Jan 2018 12:08:02 -0800 Subject: [PATCH] Remove unused Calendar objects from tests 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. --- tests/test_event.py | 4 ---- tests/test_templatetags.py | 1 - 2 files changed, 5 deletions(-) diff --git a/tests/test_event.py b/tests/test_event.py index 46911e8..1156cd7 100644 --- a/tests/test_event.py +++ b/tests/test_event.py @@ -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, diff --git a/tests/test_templatetags.py b/tests/test_templatetags.py index c0df4b0..0660d46 100644 --- a/tests/test_templatetags.py +++ b/tests/test_templatetags.py @@ -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(