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

kalekundert / autoprop / 13
100%

Build:
DEFAULT BRANCH: master
Ran 05 Feb 2017 07:18AM UTC
Jobs 6
Files 6
Run time 48s
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

pending completion
13

push

travis-ci

kalekundert
Refactor the autoprop decorator as a class.

I was having some issues with attaching attributes to the autoprop
function in python2.  Specifically, the following would return None:

    def foo():
        return foo.bar
    foo.bar = 'hello world'

I decided to get around this by rewriting autoprop as a class.  I had to
implement __new__ in order to be able to return the original class
object.  Most decorators would use __init__, but then you can't choose
what to return.

200 of 210 relevant lines covered (95.24%)

0.95 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
home/travis/virtualenv/python3.6.0/lib/python3.6/site-packages/autoprop.py
2
100.0
home/travis/virtualenv/python3.7-dev/lib/python3.7/site-packages/autoprop.py
2
100.0
home/travis/virtualenv/python3.5.2/lib/python3.5/site-packages/autoprop.py
2
100.0
home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/autoprop.py
Jobs
ID Job ID Ran Files Coverage
2 13.2 05 Feb 2017 07:18AM UTC 0
100.0
Travis Job 13.2
3 13.3 05 Feb 2017 07:18AM UTC 0
94.29
Travis Job 13.3
4 13.4 05 Feb 2017 07:18AM UTC 0
94.29
Travis Job 13.4
5 13.5 05 Feb 2017 07:18AM UTC 0
94.29
Travis Job 13.5
6 13.6 05 Feb 2017 07:19AM UTC 0
94.29
Travis Job 13.6
7 13.7 05 Feb 2017 07:18AM UTC 0
94.29
Travis Job 13.7
Source Files on build 13
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #13
  • 51338b9f on github
  • Prev Build on master (#12)
  • Next Build on master (#14)
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