Skip to content

Commit cfd2956

Browse files
test(websets-cli): skip not_found test without api key
Add missing skip_unless_cli_integration_enabled guard to test_webset_get_not_found. This test makes a real API call and was failing when RUN_CLI_INTEGRATION_TESTS is not enabled. Also fix indentation to match surrounding code. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent fd71c58 commit cfd2956

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

test/integration/websets_cli_integration_test.rb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -488,14 +488,16 @@ def test_webset_create_missing_search
488488

489489
# Test webset-get with non-existent ID
490490
def test_webset_get_not_found
491-
command = "bundle exec exe/exa-ai webset-get ws_nonexistent123 --output-format json"
491+
skip_unless_cli_integration_enabled
492492

493-
stdout, stderr, status = run_command(command)
493+
command = "bundle exec exe/exa-ai webset-get ws_nonexistent123 --output-format json"
494494

495-
refute status.success?, "webset-get with non-existent ID should fail"
496-
# Should get a 404 error
497-
combined = stdout + stderr
498-
assert_includes combined.downcase, "not found"
495+
stdout, stderr, status = run_command(command)
496+
497+
refute status.success?, "webset-get with non-existent ID should fail"
498+
# Should get a 404 error
499+
combined = stdout + stderr
500+
assert_includes combined.downcase, "not found"
499501
end
500502

501503

0 commit comments

Comments
 (0)