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

LoLab-VU / pysb / 910 / 1
79%
master: 79%

Build:
DEFAULT BRANCH: master
Ran 24 Apr 2019 10:08PM UTC
Files 100
Run time 6s
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

24 Apr 2019 09:50PM UTC coverage: 78.501% (+0.1%) from 78.366%
PYVER=2.7

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.

7427 of 9461 relevant lines covered (78.5%)

0.79 hits per line

Source Files on job 910.1 (PYVER=2.7)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 867
  • Travis Job 910.1
  • 9bcb2f4a on github
  • Prev Job for PYVER=2.7 on master (#909.1)
  • Next Job for PYVER=2.7 on master (#911.1)
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