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 ..models import Item, List
|
||||
|
||||
class ItemModelsTest(TestCase):
|
||||
class ItemModelTest(TestCase):
|
||||
def test_default_text(self):
|
||||
item = Item()
|
||||
self.assertEqual(item.text, "")
|
||||
|
||||
@@ -32,7 +32,7 @@ class FunctionalTest(StaticLiveServerTestCase):
|
||||
start_time = time.time()
|
||||
while True:
|
||||
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')
|
||||
self.assertIn(row_text, [row.text for row in rows])
|
||||
return
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{% block form_action %}{% url "view_list" list.id %}{% endblock form_action %}
|
||||
|
||||
{% block table %}
|
||||
<table id="id-list-table" class="table">
|
||||
<table id="id_list_table" class="table">
|
||||
{% for item in list.item_set.all %}
|
||||
<tr><td>{{ forloop.counter }}. {{ item.text }}</td></tr>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user