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

optimizely / python-sdk / 291
96%

Build:
DEFAULT BRANCH: master
Ran 13 Sep 2017 09:16PM UTC
Jobs 2
Files 22
Run time 55min
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
291

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%)

1.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 291.1 13 Sep 2017 09:16PM UTC 0
96.67
Travis Job 291.1
2 291.2 13 Sep 2017 09:17PM UTC 0
96.67
Travis Job 291.2
Source Files on build 291
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #291
  • 788d66ca on github
  • Prev Build on master (#272)
  • Next Build on master (#292)
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