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

pytransitions / transitions / 586
98%

Build:
DEFAULT BRANCH: master
Ran 23 Jul 2017 03:05PM UTC
Jobs 5
Files 18
Run time 1min
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
586

Pull #239

travis-ci

web-flow
Fix graph crash with partial conditions

Graph.rep() assumes that every callable has a `__name__` attribute.
However, callables like `functools.partial` and other classes with a
`__call__()` method have no `__name__`.  This patch modifies
`Graph.rep()` to first check whether the condition is a string and
return it, then try to return `f.__name__` (that is the current
behavior) and if that fails, then it calls `str()` on the argument.

`str()` should never fail and it is now the responsibility of the user
to return something meaningful from `__str__()`.
Pull Request #239: Fix graph crash with partial conditions

60 of 60 new or added lines in 3 files covered. (100.0%)

2696 of 2702 relevant lines covered (99.78%)

4.92 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
tests/test_graphing.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
tests/test_graphing.py
Jobs
ID Job ID Ran Files Coverage
1 586.1 23 Jul 2017 03:05PM UTC 0
98.48
Travis Job 586.1
2 586.2 23 Jul 2017 03:06PM UTC 0
98.52
Travis Job 586.2
3 586.3 23 Jul 2017 03:05PM UTC 0
98.52
Travis Job 586.3
4 586.4 23 Jul 2017 03:05PM UTC 0
98.19
Travis Job 586.4
5 586.5 23 Jul 2017 03:05PM UTC 0
98.7
Travis Job 586.5
Source Files on build 586
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #586
  • Pull Request #239
  • PR Base - master (#585)
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