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

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

Build:
DEFAULT BRANCH: master
Ran 24 Apr 2019 10:03PM UTC
Files 100
Run time 5s
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.1% (+0.1%) from 77.964%
PYVER=3.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.

7389 of 9461 relevant lines covered (78.1%)

0.78 hits per line

Source Files on job 910.3 (PYVER=3.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.3
  • 9bcb2f4a on github
  • Prev Job for PYVER=3.7 on master (#909.3)
  • Next Job for PYVER=3.7 on master (#911.3)
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