|
Ran
|
Jobs
1
|
Files
30
|
Run time
3s
|
Badge
README BADGES
|
push
travis-ci
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
| 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 |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 9 | 914.9 (TOX_ENV=coverage) | 0 |
83.53 |
Travis Job 914.9 |