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

@@ -123,8 +123,7 @@ def test_scrolls_page_and_outputs_stats():
result = subprocess.run(
['node', str(INFINISCROLL_HOOK), f'--url={TEST_URL}', '--snapshot-id=snap-infiniscroll'],
cwd=str(infiniscroll_dir,
env=get_test_env()),
cwd=str(infiniscroll_dir),
capture_output=True,
text=True,
timeout=60,
@@ -188,8 +187,7 @@ def test_config_scroll_limit_honored():
result = subprocess.run(
['node', str(INFINISCROLL_HOOK), f'--url={TEST_URL}', '--snapshot-id=snap-limit'],
cwd=str(infiniscroll_dir,
env=get_test_env()),
cwd=str(infiniscroll_dir),
capture_output=True,
text=True,
timeout=60,
@@ -248,8 +246,7 @@ def test_config_timeout_honored():
start_time = time.time()
result = subprocess.run(
['node', str(INFINISCROLL_HOOK), f'--url={TEST_URL}', '--snapshot-id=snap-timeout'],
cwd=str(infiniscroll_dir,
env=get_test_env()),
cwd=str(infiniscroll_dir),
capture_output=True,
text=True,
timeout=30,