GithubHelp home page GithubHelp logo

Comments (5)

neithere avatar neithere commented on July 27, 2024 1

Hm, interesting. Looks like in your environment argcomplete is present and in the default CI environments for Argh it's not.

It may be a good idea to add a tox env with extras=completion.

OTOH, the only thing it would check is whether COMPLETION_ENABLED is set to the correct value depending on whether it was possible to import argcomplete. It's such a trivial bit of logic that I'm rather leaning towards adding # pragma: no cover to these lines that you've mentioned. The behaviour with and without argcomplete is tested with a mock in any case.

from argh.

neithere avatar neithere commented on July 27, 2024 1

I've excluded that line from coverage, it really makes no sense to add a whole tox env to test that pretty obvious bit of code. Thanks for reporting!

from argh.

neithere avatar neithere commented on July 27, 2024

Hmm. The latest build in CI for Python 3.9 says:

platform linux -- Python 3.9.17, pytest-7.4.1, pluggy-1.3.0
...
Required test coverage of 100% reached. Total coverage: 100.00%

Not sure if the difference is related to sunos5. Do you have the results for Argh 0.28 in the same environment? Do you have more detailed information about the missed statements?

This argh.completion where coverage is missing is a tiny module with barely any logic, so it's probably either sh being used instead of bash in that environment, or argcomplete not being installed.

from argh.

mtelka avatar mtelka commented on July 27, 2024

The more complete report shows these two lines as missing:

70 except ImportError: 
71     argcomplete = None

from argh.

mtelka avatar mtelka commented on July 27, 2024

Yes, exactly. The argcomplete is installed here.

from argh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.