From adbc17cd88ea33df862d49cb865a75ce6fd667bc Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Sun, 11 Apr 2021 15:03:56 -0700 Subject: [PATCH] formatting audio/tests/test_view.py --- audio/tests/test_views.py | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/audio/tests/test_views.py b/audio/tests/test_views.py index 867f584..0ecc602 100644 --- a/audio/tests/test_views.py +++ b/audio/tests/test_views.py @@ -13,17 +13,38 @@ def set_up(): user_b.set_password('password_user_b') user_b.save() feed_a = Feed.objects.create(user=user_a, title='Caesar-Pompey Civil War') - feed_b = Feed.objects.create(user=user_a, title="Caesar's De Bello Gallico & Other Commentaries") + feed_b = Feed.objects.create( + user=user_a, title="Caesar's De Bello Gallico & Other Commentaries" + ) feed_c = Feed.objects.create(user=user_b, title="Short Stories Mark Twain") - Episode.objects.create(user=user_a, feed=feed_a, title="Caesar-Pompey Civil War Book I", pub_date=datetime.today() - timedelta(days=8)) - Episode.objects.create(user=user_a, feed=feed_a, title="Caesar-Pompey Civil War Book II", pub_date=datetime.today() - timedelta(days=7)) - Episode.objects.create(user=user_a, feed=feed_b, title="De Bello Gallico & Other Commentaries Book I", pub_date=datetime.today() - timedelta(days=6)) - Episode.objects.create(user=user_a, feed=feed_b, title="De Bello Gallico & Other Commentaries Book II", pub_date=datetime.today() - timedelta(days=5)) - Episode.objects.create(user=user_b, feed=feed_c, title="Mark Twain On Girls", pub_date=datetime.today() - timedelta(days=4)) - Episode.objects.create(user=user_b, feed=feed_c, title="Mark Twain The Bee", pub_date=datetime.today() - timedelta(days=3)) + Episode.objects.create( + user=user_a, feed=feed_a, title="Caesar-Pompey Civil War Book I", + pub_date=datetime.today() - timedelta(days=8) + ) + Episode.objects.create( + user=user_a, feed=feed_a, title="Caesar-Pompey Civil War Book II", + pub_date=datetime.today() - timedelta(days=7) + ) + Episode.objects.create( + user=user_a, feed=feed_b, + title="De Bello Gallico & Other Commentaries Book I", + pub_date=datetime.today() - timedelta(days=6) + ) + Episode.objects.create( + user=user_a, feed=feed_b, title="De Bello Gallico & Other Commentaries Book II", + pub_date=datetime.today() - timedelta(days=5) + ) + Episode.objects.create( + user=user_b, feed=feed_c, title="Mark Twain On Girls", + pub_date=datetime.today() - timedelta(days=4) + ) + Episode.objects.create( + user=user_b, feed=feed_c, title="Mark Twain The Bee", + pub_date=datetime.today() - timedelta(days=3) + ) -class TestViews(TestCase): +class TestViewsTestCase(TestCase): def setUp(self): set_up()