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

kdeyev / pyonwater
98%

Build:
DEFAULT BRANCH: main
Repo Added 07 Sep 2023 02:15AM UTC
Token eaM4JZvzGJa3APA2S1912Cp47Honk2nZU regen
Build 211 Last
Files 21
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

LAST BUILD ON BRANCH main
branch: main
CHANGE BRANCH
x
Reset
Sync Branches
  • main
  • chore/improve-logging
  • feature/coverall
  • feature/switch-to-ccf
  • fix/client-raise-api-error
  • fix/default-dashboard-discovery
  • fix/pre-commit-issues
  • fix/token-expiration
  • submit/test-coverage-expansion
  • v0.3.2
  • v0.3.3
  • v0.3.4

12 Apr 2026 07:40PM UTC coverage: 98.485% (+1.7%) from 96.765%
27386524907

push

github

web-flow
test: expand coverage for export-range, client, models, and units (#58)

* fix: type annotations and public helpers in export-range code

Resolves type/lint issues in the export-range implementation added in PR #52:

- Add explicit dict[str, str | int] annotation to the params dict in
  read_historical_data_range_export() to resolve partially-unknown type
- cast(str, result['url']) to resolve unknown argument type for
  normalize_export_path()
- Rewrite flow_value narrowing to eliminate type: ignore[arg-type]
  suppression while keeping identical runtime behavior
- Rename _normalize_export_path, _parse_export_csv, _parse_export_datetime
  to drop the leading underscore — these are utility methods that tests
  legitimately call, and pylint/pyright both flag accessing _ members
  from outside the class

* test: expand coverage for export-range, csv parsing, and meter cache

Phase 1 (9 tests in test_meter_reader.py):
- Export range validation: invalid days_to_load, max_retries, poll_interval
- Export range error paths: bad JSON, missing task_id, missing URL
- Poll task: error state and timeout exhausted
- normalize_export_path: invalid URL scheme

Phase 2 (6 tests in test_meter_reader.py):
- parse_export_csv: empty string, space-separated column names, no Flow column
- read_historical_data_one_day: quoted-empty response, null response, missing timeseries key

Phase 3 (2 functions / 7 cases in test_meter_reader.py):
- AggregationLevel: parametrize over all 6 enum values, verify POST body aggregate param
- RequestUnits: verify units value forwarded to POST body

Phase 4 (3 tests in test_meter.py):
- Meter cache keeps newer data when older data arrives on second read
- Meter cache not updated when timestamp and count are identical
- include_today=False passes correct end-date to export endpoint

* test: broaden client, model, and units coverage

* test: fix remaining lint issues in tests

* test: align coverage branch with v0.3.32 auth behavior

* chore: bu... (continued)

433 of 433 new or added lines in 6 files covered. (100.0%)

2145 of 2178 relevant lines covered (98.48%)

0.98 hits per line

Relevant lines Covered
Build:
Build:
2178 RELEVANT LINES 2145 COVERED LINES
0.98 HITS PER LINE
Source Files on main
  • Tree
  • List 21
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
27386524907 main test: expand coverage for export-range, client, models, and units (#58) * fix: type annotations and public helpers in export-range code Resolves type/lint issues in the export-range implementation added in PR #52: - Add explicit dict[str, str |... push 12 Jun 2026 12:33AM UTC web-flow github
98.48
27315617894 main test: expand coverage for export-range, client, models, and units (#58) * fix: type annotations and public helpers in export-range code Resolves type/lint issues in the export-range implementation added in PR #52: - Add explicit dict[str, str |... push 11 Jun 2026 12:33AM UTC web-flow github
98.48
27244903383 main test: expand coverage for export-range, client, models, and units (#58) * fix: type annotations and public helpers in export-range code Resolves type/lint issues in the export-range implementation added in PR #52: - Add explicit dict[str, str |... push 10 Jun 2026 12:31AM UTC web-flow github
98.48
27175883119 main test: expand coverage for export-range, client, models, and units (#58) * fix: type annotations and public helpers in export-range code Resolves type/lint issues in the export-range implementation added in PR #52: - Add explicit dict[str, str |... push 09 Jun 2026 12:29AM UTC web-flow github
98.48
27109530567 main test: expand coverage for export-range, client, models, and units (#58) * fix: type annotations and public helpers in export-range code Resolves type/lint issues in the export-range implementation added in PR #52: - Add explicit dict[str, str |... push 08 Jun 2026 12:31AM UTC web-flow github
98.48
27078021840 main test: expand coverage for export-range, client, models, and units (#58) * fix: type annotations and public helpers in export-range code Resolves type/lint issues in the export-range implementation added in PR #52: - Add explicit dict[str, str |... push 07 Jun 2026 12:29AM UTC web-flow github
98.48
27047225908 main test: expand coverage for export-range, client, models, and units (#58) * fix: type annotations and public helpers in export-range code Resolves type/lint issues in the export-range implementation added in PR #52: - Add explicit dict[str, str |... push 06 Jun 2026 12:28AM UTC web-flow github
98.48
26987906303 main test: expand coverage for export-range, client, models, and units (#58) * fix: type annotations and public helpers in export-range code Resolves type/lint issues in the export-range implementation added in PR #52: - Add explicit dict[str, str |... push 05 Jun 2026 12:30AM UTC web-flow github
98.48
26922317295 main test: expand coverage for export-range, client, models, and units (#58) * fix: type annotations and public helpers in export-range code Resolves type/lint issues in the export-range implementation added in PR #52: - Add explicit dict[str, str |... push 04 Jun 2026 12:37AM UTC web-flow github
98.48
26856499443 main test: expand coverage for export-range, client, models, and units (#58) * fix: type annotations and public helpers in export-range code Resolves type/lint issues in the export-range implementation added in PR #52: - Add explicit dict[str, str |... push 03 Jun 2026 12:37AM UTC web-flow github
98.48
See All Builds (204)
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc