Skip to content

[FIX] Fix failing report tests#2574

Merged
astaric merged 3 commits into
biolab:masterfrom
jerneju:fix-test-report
Sep 12, 2017
Merged

[FIX] Fix failing report tests#2574
astaric merged 3 commits into
biolab:masterfrom
jerneju:fix-test-report

Conversation

@jerneju
Copy link
Copy Markdown
Contributor

@jerneju jerneju commented Sep 11, 2017

Issue

2 tests fail:

  • test_report_widgets_evaluate
  • test_save_report
Description of changes
Includes
  • Code changes
  • Tests
  • Documentation

@codecov-io
Copy link
Copy Markdown

codecov-io commented Sep 11, 2017

Codecov Report

Merging #2574 into master will decrease coverage by <.01%.
The diff coverage is n/a.

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

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 + '.'\
Copy link
Copy Markdown
Member

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)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, fixed.

@astaric astaric changed the title [FIX] Test Report [FIX] Fix failing report tests Sep 11, 2017
@astaric astaric merged commit dace6cd into biolab:master Sep 12, 2017
@jerneju jerneju deleted the fix-test-report branch September 12, 2017 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants