new apps/dashboard/wallet.html for stripe payment integration and user's consumables; nav added to _footer.html & also dynamic copyright year with django now Y template; new apps.dash.tests ITs & UTs reflect new wallet functionality in .urls & .views
This commit is contained in:
9
src/apps/dashboard/tests/unit/test_templates.py
Normal file
9
src/apps/dashboard/tests/unit/test_templates.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from datetime import date
|
||||
from django.test import SimpleTestCase
|
||||
from django.template.loader import render_to_string
|
||||
|
||||
|
||||
class FooterTemplateTest(SimpleTestCase):
|
||||
def test_footer_shows_current_year(self):
|
||||
rendered = render_to_string("core/_partials/_footer.html")
|
||||
self.assertIn(str(date.today().year), rendered)
|
||||
Reference in New Issue
Block a user