-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[FIX] Fix failing report tests #2574
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2574 +/- ##
==========================================
- Coverage 75.02% 75.02% -0.01%
==========================================
Files 327 327
Lines 57641 57641
==========================================
- Hits 43248 43244 -4
- Misses 14393 14397 +4 |
root = root[len(top_module.__path__[0]):].lstrip(os.path.sep) | ||
for file in files: | ||
if file.lower().startswith('ow') and file.lower().endswith('.py'): | ||
module_name = top_module_name + '.' + os.path.join(root, file).replace(os.path.sep, '.')[:-len('.py')] | ||
module_name = top_module_name + '.'\ |
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.
I would rather have a too long line that a line that was split in a weird way just to make lint happy.
If I had to split this line, I would go with either
module_name = "{}.{}".format(
top_module_name,
os.path.join(root, file).replace(os.path.sep, '.')[:-len('.py')])
or
file, _ = os.path.splitext(file)
module_name = os.path.join(root, file).replace(os.path.sep, ".")
module_name = "{}.{}".format(top_module_name, module_name)
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.
Ok, fixed.
Issue
2 tests fail:
test_report_widgets_evaluate
test_save_report
Description of changes
Includes