Skip to content

Expand Railway remote-ops tests beyond the current happy path #907

@VaibhavUpreti

Description

@VaibhavUpreti

Why This Matters

tests/remote/test_ops.py covers provider resolution and one scoped status path, but not logs, fetch-logs, restart, or JSON parse failures.

Read First

  • app/remote/ops.py
  • tests/remote/test_ops.py

Scope

  1. Add direct tests for logs(), fetch_logs(), and restart().
  2. Add one test for invalid JSON output in _read_json().
  3. Add one test for stderr-only log output handling in fetch_logs().

Tests / Coverage

  • extend tests/remote/test_ops.py
  • cover RailwayRemoteOpsProvider.logs()
  • cover RailwayRemoteOpsProvider.fetch_logs()
  • cover RailwayRemoteOpsProvider.restart()
  • cover JSON decode failure paths

Acceptance Criteria

  • remote-ops tests cover more than the status path
  • parsing and stderr behavior are directly tested
  • no real Railway CLI is required

Metadata

Metadata

Assignees

Labels

remoteRemote runtime and hosted ops worktestsTest coverage and test organization

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions