-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create test for the django app #35
base: master
Are you sure you want to change the base?
Conversation
0224339
to
c874416
Compare
c874416
to
667a4cd
Compare
I need help with |
8ae260a
to
64c25a8
Compare
This is a linting error. You're probably running But the error visible in the CI is Traceback (most recent call last):
File "/home/runner/work/django-girls-blog-l1storez/django-girls-blog-l1storez/manage.py", line 12, in main
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/runner/work/django-girls-blog-l1storez/django-girls-blog-l1storez/manage.py", line 23, in <module>
main()
File "/home/runner/work/django-girls-blog-l1storez/django-girls-blog-l1storez/manage.py", line 14, in main
raise ImportError(
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? This one is happening because you run a script that imports django before you actually installed django. |
Okay, I separate into another PR |
I try to do a commit(git commit), but I always get this error |
64c25a8
to
6c15274
Compare
I try to do a commit but
|
fixing the "no member" error is more interesting |
I need help with
|
There's no such error in the CI. I only see |
Locally, I don't have |
This means that you run it differently or in a different env compared to the CI. Make sure to replicate the CI setup locally as close a possible. |
okay, I will try |
I find an interesting moment, when I run
but when I run
I think I need to fix pre-commit check |
04ecaaf
to
857db00
Compare
Add an |
No, try integrating the |
okay |
I pushed some updates to check pre-commit, cuz my local pre-commit setup broke after the system update |
@@ -8,6 +8,7 @@ lazy-object-proxy==1.6.0 | |||
mccabe==0.6.1 | |||
psycopg2-binary==2.9.1 | |||
pylint==2.9.5 | |||
pylint-django==2.4.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to configure pylint to actually load this plugin. It is currently not used in your setup.
Add running tests as a separate job in GHA CI/CD soon
#27