actually committed previously enumerated changes; the previous commit actually contained only the migrations reflecting these changes

This commit is contained in:
Disco DeDisco
2026-01-23 21:51:56 -05:00
parent 8a9f7c8af8
commit 6804d3aaae
3 changed files with 3 additions and 3 deletions

View File

@@ -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, "")

View File

@@ -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

View File

@@ -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 %}