Backend Tests throwing Attribute Error
See original GitHub issueDescribe the bug
Backend tests are not running. They are throwing the error: AttributeError: 'module' object has no attribute 'xxxx_test'
. The tests were running correctly before I pulled from develop.
To Reproduce Steps to reproduce the behavior:
- Pull from latest develop branch
- Run any backend test say
python -m scripts.run_backend_tests --test_target=jobs.types.audit_errors_test
Observed behavior
This throws error AttributeError: 'module' object has no attribute 'audit_errors_test'
Expected behavior The tests should run.
Screenshots
Desktop (please complete the following information; delete this section if the issue does not arise on desktop):
- OS: Ubuntu 20.04
- Browser Chrome
Issue Analytics
- State:
- Created 2 years ago
- Comments:18 (17 by maintainers)
Top Results From Across the Web
AttributeError: 'module' object has no attribute 'tests'
Finally figure it out that, the reason is that the name of one method that imported but not used yet is not correct....
Read more >Error AttributeError module object has no attribute tests
I'm running this command: python manage.py test project.apps.app1.tests and it causes this error: ... ' object has no attribute 'tests' Any ...
Read more >Python: AttributeError - GeeksforGeeks
AttributeError can be defined as an error that is raised when an attribute reference or assignment fails. For example, if we take a...
Read more >module 'keras.backend' has no attribute 'tf' · Issue #13244
When a software starts to throw an error where in the past it didn't, it's generally considered a bug.
Read more >Best practices for writing unit tests - .NET - Microsoft Learn
Tests that include more information than required to pass the test have a higher chance of introducing errors into the test and can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vojtechjelinek Sure, will do
Seems to be fixed.