• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

neithere / argh
93%

Build:
DEFAULT BRANCH: master
Repo Added 16 Jun 2014 03:14PM UTC
Files 12
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
  • master
  • v0.26.2
  • 111/introspect_through_wrapped

6 Feb 2019 - 22:01 coverage: 93.131% (-0.2%) from 93.333%
165

Pull #134

travis-ci

web-flow
Fix bug with skip_unknown_args=True

Passing `skip_unknown_args=True` to the parser only ever showed the
usage message.

The problem is that `parser.parse_known_args()`
(`ArgumentParser.parse_known_args`) returns a tuple
`(namespace, remainder)` instead of just a namespace object like
`parser.parse_args`. Once you pass this to
`_get_function_from_namespace_obj` it gets confused.

The unit test was expecting to only ever show the usage message when
skipping unknown args.

The remaining unknown args are stored on the namespace as `_unkown_args`,
so it's at least accessible (if we use `@expects_obj`)

```python
import argh
parser = argh.ArghParser()

@argh.arg('a')
@argh.expects_obj
def foo(args):
    print 'foo args', args

parser.add_commands([foo, bar])
parser.dispatch(skip_unknown_args=True)
```
Pull Request #134: Fix bug with skip_unknown_args=True

4 of 4 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

461 of 495 relevant lines covered (93.13%)

3.57 hits per line

Relevant lines Covered
Build:
Build:
495 RELEVANT LINES 461 COVERED LINES
3.57 HITS PER LINE
Source Files on master
  • Tree
  • List 12
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
167 patch-1 add support for varargs help message adds help from varargs annotations follow up of 3eecce3a4 and #29 Pull #137 21 Jan 2020 04:37PM UTC web-flow travis-ci
93.19
166 python-3.6 Add 3.7, 3.8, drop EOL 3.4 Pull #130 16 Nov 2019 11:27AM UTC web-flow travis-ci
92.44
165 master Fix bug with skip_unknown_args=True Passing `skip_unknown_args=True` to the parser only ever showed the usage message. The problem is that `parser.parse_known_args()` (`ArgumentParser.parse_known_args`) returns a tuple `(namespace, remainder)` i... Pull #134 06 Feb 2019 10:02PM UTC web-flow travis-ci
93.13
164 python-3.6 Upgrade Python syntax with pyupgrade Pull #130 29 Jul 2018 08:53AM UTC web-flow travis-ci
93.33
163 python-3.6 Add python_requires to help pip Pull #130 04 Jul 2018 09:02PM UTC web-flow travis-ci
93.58
162 master removing COPYING file (fixes #125) Pull #126 12 Nov 2017 03:19PM UTC web-flow travis-ci
93.33
161 master Declare Python 3.6 support Enable tests and add Trove classifiers for Python 3.6. Pull #122 28 Jun 2017 01:43AM UTC web-flow travis-ci
93.33
160 master tests: fix pylint warning Pull #117 18 Sep 2016 10:08AM UTC web-flow travis-ci
88.47
159 master fix broken link describing testing in setup.py Pull #116 17 Sep 2016 08:27PM UTC web-flow travis-ci
93.33
158 master Update changelog push 27 Aug 2016 12:03AM UTC neithere travis-ci
93.33
See All Builds (53)
  • Repo on GitHub
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2023 Coveralls, Inc