actually committed previously enumerated changes; the previous commit actually contained only the migrations reflecting these changes
This commit is contained in:
@@ -3,7 +3,7 @@ from django.db.utils import IntegrityError
|
|||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
from ..models import Item, List
|
from ..models import Item, List
|
||||||
|
|
||||||
class ItemModelsTest(TestCase):
|
class ItemModelTest(TestCase):
|
||||||
def test_default_text(self):
|
def test_default_text(self):
|
||||||
item = Item()
|
item = Item()
|
||||||
self.assertEqual(item.text, "")
|
self.assertEqual(item.text, "")
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ class FunctionalTest(StaticLiveServerTestCase):
|
|||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
table = self.browser.find_element(By.ID, 'id-list-table')
|
table = self.browser.find_element(By.ID, 'id_list_table')
|
||||||
rows = table.find_elements(By.TAG_NAME, 'tr')
|
rows = table.find_elements(By.TAG_NAME, 'tr')
|
||||||
self.assertIn(row_text, [row.text for row in rows])
|
self.assertIn(row_text, [row.text for row in rows])
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
{% block form_action %}{% url "view_list" list.id %}{% endblock form_action %}
|
{% block form_action %}{% url "view_list" list.id %}{% endblock form_action %}
|
||||||
|
|
||||||
{% block table %}
|
{% block table %}
|
||||||
<table id="id-list-table" class="table">
|
<table id="id_list_table" class="table">
|
||||||
{% for item in list.item_set.all %}
|
{% for item in list.item_set.all %}
|
||||||
<tr><td>{{ forloop.counter }}. {{ item.text }}</td></tr>
|
<tr><td>{{ forloop.counter }}. {{ item.text }}</td></tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user