mirror of
https://github.com/simonw/datasette.git
synced 2026-05-27 12:34:37 +02:00
Fix ruff lints in close-related tests
Drop unused `bad = ...` assignment and unused `import pytest`. Refs #2692 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
df96e12737
commit
ede942a32e
2 changed files with 1 additions and 3 deletions
|
|
@ -289,7 +289,7 @@ async def test_datasette_close_continues_past_db_error():
|
|||
def close(self):
|
||||
raise RuntimeError("boom")
|
||||
|
||||
bad = ds.add_database(Boom(ds, is_memory=True), name="bad")
|
||||
ds.add_database(Boom(ds, is_memory=True), name="bad")
|
||||
good = ds.add_database(Database(ds, is_memory=True), name="good")
|
||||
with pytest.raises(RuntimeError, match="boom"):
|
||||
ds.close()
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@ import sys
|
|||
import textwrap
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
REPO_ROOT = Path(__file__).parent.parent
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue