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

LoLab-VU / pysb / 910
79%

Build:
DEFAULT BRANCH: master
Ran 24 Apr 2019 10:03PM UTC
Jobs 3
Files 100
Run time 5min
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
910

push

travis-ci

web-flow
Fix invalid component handling (#431)

Previously, if one added an invalid parameter, rule etc. that generated
an exception in `__init__`, (e.g. a validation error), the component
was still added to the model. In interactive mode, this is annoying, as
the model has to be re-instantiated. Example:

    Model()
    Parameter('a', 'invalid_value')  # raises ValueError
    assert len(model.parameters) == 0  # fixed in this PR
    Parameter('a', 1.0)  # should succeed

This PR fixes this situation by adding the Component to the Model
(by calling `Component.__init__()`) last instead of first.

7389 of 9461 relevant lines covered (78.1%)

2.35 hits per line

Jobs
ID Job ID Ran Files Coverage
1 910.1 (PYVER=2.7) 24 Apr 2019 10:08PM UTC 0
78.5
Travis Job 910.1
2 910.2 (PYVER=3.6) 24 Apr 2019 10:04PM UTC 0
78.1
Travis Job 910.2
3 910.3 (PYVER=3.7) 24 Apr 2019 10:03PM UTC 0
78.1
Travis Job 910.3
Source Files on build 910
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #910
  • 9bcb2f4a on github
  • Prev Build on master (#909)
  • Next Build on master (#911)
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