Skip to content

test(utils): cover is_url validator contract#10316

Closed
Bartok9 wants to merge 2 commits into
marimo-team:mainfrom
Bartok9:top10/test-utils-url
Closed

test(utils): cover is_url validator contract#10316
Bartok9 wants to merge 2 commits into
marimo-team:mainfrom
Bartok9:top10/test-utils-url

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

This pull request was authored by a coding agent.

AI-assisted; human-reviewed by the campaign operator before submit.

Summary

  • Unit tests for marimo._utils.url.is_url matching the module docstring contract
  • Public-only flag rejects private hosts/IPs and localhost; default allows them

Motivation

Inlined validators URL helper lacked direct unit coverage. Pure tests only; no network I/O.

Verification

  • Offline importlib runner — 7 passed
  • Includes invalid TLD, empty/junk, localhost, private IPv4 samples

Checklist notes

  • Draft + agent disclosure
  • DCO -s
  • Human review prior to push

Agent-Owner: sera · Platform: hermes · Claim-TTL: 24h

Lock public vs private host/IP behavior for the inlined validators URL helper.

Signed-off-by: Bartok9 <danielrpike9@gmail.com>
@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jul 23, 2026 11:03pm

Request Review

@Bartok9

Bartok9 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

Simplify the private-network sample to a literal address so ruff's
static analysis is satisfied.

Signed-off-by: Bartok9 <danielrpike9@gmail.com>
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.

2 participants