Skip to content

Small fixes with assertion methods in test files - #2869

Merged
peterjc merged 5 commits into
biopython:masterfrom
trkohler:small-fixes-with-assertion-methods-in-test-files
May 9, 2020
Merged

peterjc merged 5 commits into
biopython:masterfrom
trkohler:small-fixes-with-assertion-methods-in-test-files

Conversation

@trkohler

@trkohler trkohler commented May 8, 2020

Copy link
Copy Markdown
Contributor

This pull request addresses issue #2835

  • 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 flake8 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.)

@peterjc
peterjc marked this pull request as ready for review May 8, 2020 20:40
@peterjc
peterjc requested a review from JoaoRodrigues as a code owner May 8, 2020 20:40
@peterjc

peterjc commented May 8, 2020

Copy link
Copy Markdown
Member

By eye this looked ready for review, but GitHub now tells me there is a conflict on Tests/test_PDB.py - are you able to fix that? For simple issues GitHub's resolve conflicts works quite well, you you could try "git rebase" or "git merge" depending on what you are familiar with.

@codecov

codecov Bot commented May 9, 2020 •

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2869   +/-   ##
=======================================
  Coverage   84.18%   84.18%           
=======================================
  Files         318      318           
  Lines       50126    50126           
=======================================
  Hits        42200    42200           
  Misses       7926     7926           

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 ff71a16...33a4646. Read the comment docs.

Comment thread Tests/test_PDB.py Outdated
self.assertEqual(model, model) # __eq__ same type
self.assertNotEqual(struct[0], struct[1])


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.

Tiny style issue here reported via flake8,

$ flake8
./Tests/test_PDB.py:687:9: E303 too many blank lines (2)

You added a blank line which is didn't like.

@peterjc

peterjc commented May 9, 2020

Copy link
Copy Markdown
Member

If you can remove that extra blank line, this looks ready to merge. Thanks!

@peterjc
peterjc merged commit 4ba5c4a into biopython:master May 9, 2020
@peterjc

peterjc commented May 9, 2020

Copy link
Copy Markdown
Member

Applied, thank you!

@trkohler
trkohler deleted the small-fixes-with-assertion-methods-in-test-files branch May 10, 2020 15:08
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