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

optimizely / python-sdk / 291 / 2
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 13 Sep 2017 09:17PM UTC
Files 22
Run time 54min
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

13 Sep 2017 09:15PM UTC coverage: 96.667% (+0.1%) from 96.529%
291.2

push

travis-ci

web-flow
Alda/numeric metrics (#76)

* Added a helper method to find numeric metric values in the event tags.

* Added tests for the numeric metric value helper method.

* Renamed REVENUE_METRIC_TYPE enum to EVENT_VALUE_METRIC to be consistent with Java.

* Replaced hard-coded revenue tag with enum. Renamed the local variable event value to revenue value to better describe its reference.

* Added a check for numeric metric value in the event builder.

* Fixed unit tests for numeric metric.

* Changed event value test names to event tags. Updated test comment descriptions.

* Added a couple more unit tests to test track and conversion event generation are valid when only revenue or numeric metric event tags are provided.

* Fixed lint errors.

* Enabled max diff to see unit test error on travis.

* Fixed nit spacing and wording.

* Sort the event tag keys as they were being returned in an undeterministic way, which made some unit tests inconsistent. Event tag keys is a short list, so the sort should not create overhead.

* Refactored numeric metric unit tests to use a subroutine and isolated event object checks to parameters related to event tags so that the unit tests won't be brittle.

* Handled corner cases for the get numeric value better. Strings and numbers are supported; everything else should return None.

* Sorted the event features results in the test so we don't have to sort it in the event builder.

* Fixed an import statement.

* Removed basestring as this is not supported by Python3.

* Updated some code comments.

* Cleaned up some wording and unit test ordering.

* Removed blank line at end of file.

1073 of 1110 relevant lines covered (96.67%)

0.97 hits per line

Source Files on job 291.2
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 291
  • Travis Job 291.2
  • 788d66ca on github
  • Prev Job for on master (#272.2)
  • Next Job for on master (#292.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