Repository navigation
Remove redundant self test GenomeDiagram related. - #1930
Conversation
| testdata1 = [(1, 10), (5, 15), (10, 20), (20, 40)] | ||
| testdata2 = [(250, .34), (251, .7), (252, .7), (253, .54), (254, .65)] | ||
|
|
||
| gdgs.add_graph(testdata1, 'TestData 1') |
There was a problem hiding this comment.
I see no use of . add_graph in Tests/test_GenomeDiagram.py so this is not covered.
There was a problem hiding this comment.
There is no 'add_graph' in _GraphSet.py, I think is superseded with new_graph.
There was a problem hiding this comment.
Oh, so this old self-test had stopped working too. We can clarify this in the merge commit comment.
| for set in sets: | ||
| print(set) | ||
|
|
||
| print(gdt.get_element_limits()) |
There was a problem hiding this comment.
I see no use of . get_element_limits in Tests/test_GenomeDiagram.py so that should also be added to the unit tests.
There was a problem hiding this comment.
There is no 'get_element_limits' in _Track. No sure what happened to that method but is not there.
There was a problem hiding this comment.
Oh, so the old self-test had stopped working then? This is a perfect example of one of the reasons why I want to move all the old self-tests into the main test framework which will run them regularly and automatically.
We can clarify this in the merge commit comment.
|
You might also find it useful to look at the coverage measurements as reported at https://codecov.io/gh/biopython/biopython/tree/master/Bio/Graphics/GenomeDiagram |
Codecov Report
@@ Coverage Diff @@
## master #1930 +/- ##
==========================================
- Coverage 85.02% 83.69% -1.33%
==========================================
Files 310 309 -1
Lines 49958 49908 -50
==========================================
- Hits 42477 41772 -705
- Misses 7481 8136 +655
Continue to review full report at Codecov.
|
|
Thanks for answering my queries - I think we can merge this but I will make a note that parts of old self-tests didn't work anymore in the comment. Just waiting for TravisCI to finish... it might be stuck? |
|
Squash-and-merged, thank you. |
This was used in the recently removed self-test, see #1930. However, rather than triggering an unused import, we seem to have triggered a flake8 false positive where range is defined as a class method: $ flake8 Bio/ Bio/Graphics/GenomeDiagram/_Track.py:226:5: F811 redefinition of unused 'range' from line 27
This pull request addresses issue #820
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.rstfile and understand that AppVeyor andTravisCI will be used to confirm the Biopython unit tests and
flake8stylechecks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)