Skip to content

test: cover list_sensors is_online_only and sensor list --online#317

Open
tomaz-lc wants to merge 1 commit into
masterfrom
feat-sensor-online-only-tests
Open

test: cover list_sensors is_online_only and sensor list --online#317
tomaz-lc wants to merge 1 commit into
masterfrom
feat-sensor-online-only-tests

Conversation

@tomaz-lc

Copy link
Copy Markdown
Contributor

Details

Adds test coverage for the is_online_only option on Organization.list_sensors and the sensor list --online CLI flag, which shipped without tests. No production code change.

Testing

  • Unit (SDK): is_online_only=True sends is_online_only="true" in the query params; the default / explicit False omits the parameter entirely (backward compatible - the request is unchanged from before the option existed); and it composes with a selector.
  • Unit (CLI): sensor list defaults to is_online_only=False; sensor list --online maps to is_online_only=True.
  • Integration: is_online_only may only narrow the result - the online-only listing is a subset of, and no larger than, the full listing (runs against a live org in CI).

Blast radius / isolation

  • Tests only; no runtime or behavior change. Only the sensor-listing test files are touched.

Related PRs

  • go SDK counterpart (adds the same online-only option to the iterative selector resolution): go-limacharlie#257

🤖 Generated with Claude Code

The is_online_only option on Organization.list_sensors (and the --online CLI
flag) had no test coverage. Add it:

- Unit (SDK): is_online_only=True sends is_online_only="true" in the query;
  the default / explicit False omits the parameter entirely (backward
  compatible - the request is unchanged from before the option existed); and
  it composes with a selector.
- Unit (CLI): `sensor list` defaults to is_online_only=False; `sensor list
  --online` maps to is_online_only=True.
- Integration: OnlineOnly may only narrow - the online-only listing is a subset
  of, and no larger than, the full listing.

No production code change; tests only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tomaz-lc
tomaz-lc force-pushed the feat-sensor-online-only-tests branch from 37c8068 to 82abb20 Compare July 20, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant