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
improve doctests coverage in graphs #30377
Comments
Branch: public/graphs/30377_doctests |
Commit: |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:3
ok, feu vert |
Reviewer: Frédéric Chapoton |
comment:4
Thanks! |
comment:5
Sorry, I am a bit annoyed already today. Whose great idea was is to introduce new calls to It may be a lesser offence in a doctest than at runtime but it is still objectionable. If Volker keeps this ticket merged in the current state, be assured there will be a follow up ticket to remove those bits. |
comment:6
Sorry for that. Should I change the doctest to something like that ?
or do you have a better suggestion ? |
comment:7
I sincerely have no better suggestion. Playing with automagically discoverable dependency at runtime is always a bit fun. I notice some other python packages usually do a runtime detection at the beginning of the test run and then skip what is not available. sage is taking a very different approach. And testing the runtime tester is always going to leave you in a funny position. |
comment:9
Should be better this way. The alternative is to simply remove the test. |
Changed reviewer from Frédéric Chapoton to Frédéric Chapoton, François Bissey |
comment:11
OK, Volker finally did not include the old version of the ticket in 9.2.beta10. Thanks for the correction. |
Changed branch from public/graphs/30377_doctests to |
Add doctests to reach 100% coverage in
graphs/generic_graph.py
: was 99.1% (227 of 229)graphs/graph_decompositions/fast_digraph.pyx
: was 33.3% (1 of 3)graphs/graph_list.py
: was 77.8% (7 of 9)graphs/tutte_polynomial.py
: was 95.2% (20 of 21)What remains:
graphs/graph_database.py
: 93.3% (14 of 15). The missing doctest is in method_gen_interact_func
which usessagenb
. So it will certainly be removed in the future.graphs/graph_generators.py
: 92.9% (13 of 14). The missing doctest is in method__append_to_doc
used to feed global variable__doc__
used by sphinx. Don't know how to doctest that.CC: @fchapoton
Component: graph theory
Author: David Coudert
Branch/Commit:
eadfe03
Reviewer: Frédéric Chapoton, François Bissey
Issue created by migration from https://trac.sagemath.org/ticket/30377
The text was updated successfully, but these errors were encountered: