Skip to content

Dedupe near-duplicate deploy tests - #319

Merged
nicomiguelino merged 1 commit into
masterfrom
test/dedupe-deploy-tests
Sep 3, 2026
Merged

Dedupe near-duplicate deploy tests#319
nicomiguelino merged 1 commit into
masterfrom
test/dedupe-deploy-tests

Conversation

@nicomiguelino

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • cargo build
  • cargo test (only known pre-existing unrelated failure: authentication::tests::test_read_token_correct_token_is_returned)
  • cargo clippy --all-targets -- -D warnings
  • cargo fmt --check

Fold the two deploy request tests into a shared helper
parameterized on whether the manifest has an id.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is a straightforward test refactor that preserves the same mocked request expectations while removing duplicated code.

Pull request overview

Refactors the edge_app deploy request tests to remove near-duplicate test bodies while preserving coverage of both “app id comes from manifest” and “explicit app id with no manifest id” behaviors.

Changes:

  • Introduces a shared helper run_deploy_should_send_correct_requests_test(id_in_manifest: bool) for the deploy-request mock/assert sequence.
  • Updates the two existing deploy tests to delegate to the helper with true/false, toggling whether manifest.id is present and whether deploy() is called with an explicit app_id.
File summaries
File Description
src/commands/edge_app/app.rs Deduplicates two near-identical deploy tests into a shared helper while keeping both scenarios exercised.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@nicomiguelino
nicomiguelino merged commit 292af23 into master Sep 3, 2026
12 checks passed
@nicomiguelino
nicomiguelino deleted the test/dedupe-deploy-tests branch September 3, 2026 16:07
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.

3 participants