Bhupesh-V / Bhupesh-V/tutorialdb
Static Files Bug when running 'manage.py test' for setup
- Dominant language
- Python
- Stars
- 128
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
The bug appears after going through the setup; the program is unable to locate the static files root directory. I have tried running `python manage.py collectstatic` while changing the static file paths which resolves most errors, but still leaves me with a final 404 error:
`FAIL: test_tutorials_page_status_code (api.tests.test_views.APITests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\temp\hacktoberfest\tutorialdb\api\tests\test_views.py", line 8, in test_tutorials_page_status_code
self.assertEquals(response.status_code, 200)
AssertionError: 404 != 200`
**To Reproduce**
Steps to reproduce the behavior:
1. Go through the initial setup steps of creating venv and installing requirements
2. After running the migrate command, run the test command from setup
3. See error
**Expected behavior**
Status code of 200, asserting page was created correctly
Contributor guide
Assessment
This issue has not been assessed yet.