mirror of
https://github.com/Dasemu/x-space-downloader.git
synced 2026-10-13 13:39:45 +00:00
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
13 lines
347 B
Python
13 lines
347 B
Python
import pytest
|
|
from src.validator import validate_space_url
|
|
|
|
|
|
def test_validate_space_url_valid():
|
|
"""Test that valid X Space URL is accepted."""
|
|
url = "https://x.com/i/spaces/1ZkKzZWnVRRKv"
|
|
is_valid, space_id, error = validate_space_url(url)
|
|
|
|
assert is_valid is True
|
|
assert space_id == "1ZkKzZWnVRRKv"
|
|
assert error is None
|