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

magfest / magfest / 19
54%

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

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

Jobs
ID Job ID Ran Files Coverage
2 19.2 (TOX_ENV=py34) 26 Apr 2017 05:49PM UTC 0
57.61
Travis Job 19.2
Source Files on build 19
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #19
  • f2e2c05d on github
  • Prev Build on master (#14)
  • Next Build on master (#20)
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