mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-13 18:46:17 +05:00
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
Build Debian package / build (push) Waiting to run
Deploy static content to Pages / deploy (push) Waiting to run
Build Homebrew package / build (push) Waiting to run
Build GitHub Pages website / build (push) Waiting to run
Build GitHub Pages website / deploy (push) Blocked by required conditions
Run linters / lint (push) Waiting to run
Build Pip package / build (push) Waiting to run
Parallel Tests / Discover test files (push) Waiting to run
Parallel Tests / ${{ matrix.test.name }} (push) Blocked by required conditions
Run tests / python_tests (ubuntu-22.04, 3.13) (push) Waiting to run
Run tests / docker_tests (push) Waiting to run
27 lines
642 B
Python
27 lines
642 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Tests for archivebox shell command.
|
|
Verify shell command starts Django shell (basic smoke tests only).
|
|
"""
|
|
|
|
import os
|
|
import subprocess
|
|
|
|
from .fixtures import *
|
|
|
|
|
|
def test_shell_command_exists(tmp_path, process):
|
|
"""Test that shell command is recognized."""
|
|
os.chdir(tmp_path)
|
|
|
|
# Test that the command exists (will fail without input but should recognize command)
|
|
result = subprocess.run(
|
|
['archivebox', 'shell', '--help'],
|
|
capture_output=True,
|
|
text=True,
|
|
timeout=10,
|
|
)
|
|
|
|
# Should show shell help or recognize command
|
|
assert result.returncode in [0, 1, 2]
|