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

magfest / magfest / 19 / 2
54%
master: 54%

Build:
DEFAULT BRANCH: master
Ran 26 Apr 2017 05:49PM UTC
Files 14
Run time 0s
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

26 Apr 2017 05:46PM UTC coverage: 57.609% (+12.6%) from 45.0%
TOX_ENV=py34

push

travis-ci

web-flow
Implement half-price child discounts for all MAG events (#10)

* Implement half-priced child badges for all MAG events
This code was in the magprime plugin, but both Stock and West leadership teams have requested this functionality so I'm copying it into our generic MAGFest plugin.

* Add child-related validations
Moves validations over from the magprime repo. We do not include the validations regarding c.CHILD_BADGE because we do not use the Child badge type in other events (yet?).

* Use age discount instead of cost property
The age discount is figured into the `badge_cost` property, while the cost_property decorators are applied afterwards. Since we're dealing with the badge cost, this is the better way to do it -- for example, the admin page will now show the correct badge price for an attendee under 13.

* Add child price tests
Also allows a configured age discount to 'win' over half-off prices, so an event can make child badges cheaper than the standard half-off discount without code changes.

* Fix unit tests

* Stop incurring false positive on one unit tests

53 of 92 relevant lines covered (57.61%)

0.58 hits per line

Source Files on job 19.2 (TOX_ENV=py34)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 19
  • Travis Job 19.2
  • f2e2c05d on github
  • Prev Job for TOX_ENV=py34 on master (#14.2)
  • Next Job for TOX_ENV=py34 on master (#20.2)
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