Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Backend Tests throwing Attribute Error

See original GitHub issue

Describe 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:

  1. Pull from latest develop branch
  2. 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 Screenshot from 2021-04-15 18-06-50

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:closed
  • Created 2 years ago
  • Comments:18 (17 by maintainers)

github_iconTop GitHub Comments

aishwary023commented, Apr 16, 2021

@vojtechjelinek Sure, will do

vojtechjelinekcommented, Feb 27, 2022

Seems to be fixed.

Read more comments on GitHub >

github_iconTop 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 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found