move tests into subfolder, add missing install hooks

This commit is contained in:
Nick Sweeting
2026-01-02 00:22:07 -08:00
parent c2afb40350
commit 65ee09ceab
80 changed files with 2659 additions and 859 deletions

View File

@@ -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]