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

influxdata / influxdb-python / 914
86%

Build:
DEFAULT BRANCH: master
Ran 21 Apr 2016 03:54AM UTC
Jobs 1
Files 30
Run time 3s
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
914

push

travis-ci

aviau
Add time parameter to SeriesHelper (#306)

* Revert Allow setting the time of a point manually

This reverts commit c25ec0892,
which this commit is part of PR #304.

* Allow time to be specified in SeriesHelper.__init__()

* Extract SeriesHelper default timestamp into method for testability

* Use datetime.utcnow() as default timestamp in SeriesHelper

This is preferable to time.time() because _convert_timestamp() from
influxdb.line_protocol will do precision handling and conversion if a
datetime object is given.

* Get existing tests working by mocking SeriesHelper._current_timestamp()

* Add additional tests for SeriesHelper time field

* Move _reset_() calls in TestSeriesHelper to tearDown()

* Use mock.patch() instead of unittest.mock.patch() for py27

* Update SeriesHelper docstring

50 of 50 new or added lines in 2 files covered. (100.0%)

2419 of 2896 relevant lines covered (83.53%)

0.84 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
influxdb/line_protocol.py
1
100.0
influxdb/tests/__init__.py
1
100.0
influxdb/tests/chunked_json_test.py
1
100.0
influxdb/tests/test_line_protocol.py
1
100.0
influxdb/tests/resultset_test.py
1
100.0
influxdb/tests/influxdb08/dataframe_client_test.py
1
100.0
influxdb/tests/dataframe_client_test.py
2
100.0
influxdb/tests/influxdb08/helper_test.py
5
100.0
influxdb/helper.py
5
100.0
influxdb/resultset.py
8
100.0
influxdb/tests/influxdb08/client_test.py
8
100.0
influxdb/tests/server_tests/base.py
10
100.0
influxdb/tests/client_test.py
17
100.0
influxdb/tests/helper_test.py
21
100.0
influxdb/client.py
22
100.0
influxdb/tests/misc.py
69
100.0
influxdb/tests/server_tests/influxdb_instance.py
209
100.0
influxdb/tests/server_tests/client_test_with_server.py
Jobs
ID Job ID Ran Files Coverage
9 914.9 (TOX_ENV=coverage) 21 Apr 2016 03:54AM UTC 0
83.53
Travis Job 914.9
Source Files on build 914
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #914
  • 3b7039e7 on github
  • Prev Build on master (#852)
  • Next Build on master (#915)
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