Skip to content
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

Merged
merged 3 commits into from
Sep 12, 2017
Merged

[FIX] Fix failing report tests #2574

merged 3 commits into from
Sep 12, 2017

Conversation

jerneju
Copy link
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

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

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