mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-01-04 18:05:36 +10:00
move tests into subfolder, add missing install hooks
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
#!/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]
|
||||
Reference in New Issue
Block a user