Small improvements for displaying closed funds#4456
Conversation
f5480e3 to
d034879
Compare
|
this test failure is super weird - no errors when running the server & it pulls the message from the system setting fine? But tests all error out saying the column doesn't exist. will dig deeper tomorrow |
|
@theskumar Can you figure out why the test fails like this? It's like the migration does not run before the tests. The code looks fine to me, just another home page setting. The site works as intended with this new setting. |
frjo
left a comment
There was a problem hiding this comment.
Something weird with the tests. The code works just as intended when I test.
Checking |
hypha/home/templates/home/home.html
Outdated
| {% else %} | ||
| <div class="mt-8"> | ||
| {{ settings.core.SystemSettings.home_no_applications_msg|nh3|safe }} | ||
| <div> |
There was a problem hiding this comment.
I think this should be a closing div </div>
There was a problem hiding this comment.
nice catch! not sure why I'm forgetting to properly close all my tags
235b0e6 to
ed9a2d1
Compare
|
This testing failure is so weird - seems to happen when any new field gets added in a migration. Like I added a which resulted in the same |
By default, pytest-django creates a test database the first time a test requires it. This database is cached for subsequent tests, which helps improve performance by avoiding repeated setup, unless you provide |
b29f849 to
ed9a2d1
Compare
@theskumar did you mean |
How to test. - create a fresh db - update you DATABASE_URL - run `./manage.py migrate issue: #4456 (comment) Strategy: - fetch only the required columns, and update data only if previous system setting exist.
|
thanks @theskumar for saving me quite a bit of time! I was stumped |

A couple simple additions:
Mobil->Mobiletypo in system settings, docstrings inutil_tags.pyTest Steps