richarddushime / Implementing-Facial-Recognition-and-Biometric-Attendance-Monitoring-in-Educational-and-Corporate-Set

Facial recognition and Biometric attendance monitoringin education and corporate settings
Other
18 stars 22 forks source link

Students Application Unit Tests #54

Closed jovialumwari closed 8 months ago

jovialumwari commented 8 months ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

How to test the PR

Run Tests : python manage.py tests students

Issue

issue number #41

danielmarv commented 8 months ago

Try to check out why this error is out to the check

FAIL: test_index_view (students.tests.IndexViewTest.test_index_view)

Traceback (most recent call last): File "/home/runner/work/Implementing-Facial-Recognition-and-Biometric-Attendance-Monitoring-in-Educational-and-Corporate-Set/Implementing-Facial-Recognition-and-Biometric-Attendance-Monitoring-in-Educational-and-Corporate-Set/FRB_Attendance_Monitoring/students/tests.py", line 16, in test_index_view self.assertTemplateUsed(response, 'home.html') File "/opt/hostedtoolcache/Python/3.11.3/x64/lib/python3.11/site-packages/django/test/testcases.py", line 859, in assertTemplateUsed self._assert_template_used(template_name, template_names, msg_prefix, count) File "/opt/hostedtoolcache/Python/3.11.3/x64/lib/python3.11/site-packages/django/test/testcases.py", line 824, in _assert_template_used self.assertTrue( AssertionError: False is not true : Template 'home.html' was not a template used to render the response. Actual template(s) used: index.html, base.html