Fakultas Ilmu Komputer UI

Commit 396f2b65 authored by Kevin Albert Simanjuntak's avatar Kevin Albert Simanjuntak
Browse files

reload page after create item

parent 69800cdb
Pipeline #20860 failed with stage
in 2 minutes and 15 seconds
......@@ -54,10 +54,12 @@ class HomePageTest(TestCase):
self.assertIn('<h2 id="comment">yey, waktunya berlibur</h2>', response.content.decode())
Item.objects.create(text='itemey 1')
Item.objects.create(text='itemey 2')
response = self.client.get('/homepage/')
self.assertIn('<h2 id="comment">sibuk tapi santai</h2>', response.content.decode())
Item.objects.create(text='itemey 3')
Item.objects.create(text='itemey 4')
Item.objects.create(text='itemey 5')
response = self.client.get('/homepage/')
self.assertIn('<h2 id="comment">oh tidak</h2>', response.content.decode())
class ItemModelTest(TestCase):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment