Skip to content

changed assertion styling for test_NCBI_qblast.py - #3273

Merged
peterjc merged 2 commits into
biopython:masterfrom
sgalpha01:unittest-styling-fixes
Sep 13, 2020
Merged

peterjc merged 2 commits into
biopython:masterfrom
sgalpha01:unittest-styling-fixes

Conversation

@sgalpha01

@sgalpha01 sgalpha01 commented Sep 12, 2020 •

Copy link
Copy Markdown
Contributor
  • I hereby agree to dual licence this and any previous contributions under both
    the Biopython License Agreement AND the BSD 3-Clause License.

  • I have read the CONTRIBUTING.rst file, have run pre-commit locally,
    and understand that AppVeyor and TravisCI will be used to confirm the Biopython unit
    tests and style checks pass with these changes.

  • I have added my name to the alphabetical contributors listings in the files
    NEWS.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

Addresses Issue #2835

@codecov

codecov Bot commented Sep 12, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #3273 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3273   +/-   ##
=======================================
  Coverage   83.93%   83.93%           
=======================================
  Files         317      317           
  Lines       51556    51556           
=======================================
  Hits        43275    43275           
  Misses       8281     8281           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7960d11...64c80c0. Read the comment docs.

Comment thread Tests/test_NCBI_qblast.py Outdated
self.assertTrue(len(record.descriptions) > 0) # Expected some descriptions!
self.assertGreater(
len(record.descriptions), 0
) # Expected some descriptions!

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.

This might be clearer with the comment on the line above, and then the code will fit on one line (black style). What do you think?

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.

I let black do the formatting. It did so because of the inline-comment. But, your suggested style is better and will also maintain consistency with the above statement.

@sgalpha01
sgalpha01 requested a review from peterjc September 13, 2020 08:52
@peterjc
peterjc merged commit 05ef881 into biopython:master Sep 13, 2020
@peterjc

peterjc commented Sep 13, 2020

Copy link
Copy Markdown
Member

Looks good, thank you.

@sgalpha01
sgalpha01 deleted the unittest-styling-fixes branch September 13, 2020 13:12
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.

2 participants