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

hgrecco / pint / 1784 / 9
91%
master: 91%

Build:
DEFAULT BRANCH: master
Ran 16 Jun 2020 10:24PM UTC
Files 18
Run time 59s
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

16 Jun 2020 10:09PM UTC coverage: 84.679% (+0.02%) from 84.656%
PKGS="python=3.7 numpy=1.14 matplotlib"

push

travis-ci

web-flow
Merge #1114

1114: Add `__contains__` magic to UnitRegistry r=hgrecco a=clarkgwillison

- [x] Closes #1806
- [x] Executed ``black -t py36 . && isort -rc . && flake8`` with no errors
- [x] The change is fully covered by automated unit tests
- [x] Documented in docs/ as appropriate
- [x] Added an entry to the CHANGES file

This change allows someone to check if a unit (even a prefixed unit) is defined in a `UnitRegistry` using the python `in` keyword like so:

```python
>>> 'MHz' in ureg
True
>>> 'gigatrees' in ureg
False
```

Co-authored-by: Clark Willison <clarkgwillison@gmail.com>

3399 of 4014 relevant lines covered (84.68%)

0.85 hits per line

Source Files on job 1784.9 (PKGS="python=3.7 numpy=1.14 matplotlib")
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1658
  • Travis Job 1784.9
  • f8ec2caa on github
  • Prev Job for PKGS="python=3.7 numpy=1.14 matplotlib" on master (#1781.9)
  • Next Job for PKGS="python=3.7 numpy=1.14 matplotlib" on master (#1788.9)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc