carltongibson / neapolitan

Quick CRUD views for Django
https://noumenal.es/neapolitan/
MIT License
413 stars 30 forks source link

Unit test failure #22

Closed kasun closed 1 year ago

kasun commented 1 year ago

Unit tests are failing for me (3/7) in main branch. Django version 4.2.2. Python version 3.10.3

django-admin test --settings=tests.settings --pythonpath=.

Found 7 test(s).
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
F...FF.

----------------------------------------------------------------------
Ran 7 tests in 0.044s

FAILED (failures=3)
carltongibson commented 1 year ago

Regression in b1290953175916780e0116d6501624f52678c04a

======================================================================
FAIL: test_list_empty (tests.tests.BasicTests.test_list_empty)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/carlton/Projects/Django/neapolitan/tests/tests.py", line 56, in test_list_empty
    self.assertContains(
  File "/Users/carlton/Envs/neapolitan/lib/python3.11/site-packages/django/test/testcases.py", line 660, in assertContains
    self.assertTrue(
AssertionError: False is not true : Couldn't find '<a href="/bookmark/new/">Add a new bookmark</a>' in response

Adding the Tailwind classes means the HTML doesn't match exactly.