style: apply ruff auto-fix
- Auto-formatted code with ruff format - Applied ruff linting fixes with --fix Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -173,16 +173,16 @@ class TestSchemaMigrations:
|
||||
|
||||
inspector = inspect(engine)
|
||||
columns = {col["name"]: col for col in inspector.get_columns("files")}
|
||||
|
||||
|
||||
assert "original_file_path" in columns
|
||||
assert columns["original_file_path"]["type"].__class__.__name__ in ("VARCHAR", "String", "TEXT")
|
||||
|
||||
|
||||
assert "processed_file_path" in columns
|
||||
assert columns["processed_file_path"]["type"].__class__.__name__ in ("VARCHAR", "String", "TEXT")
|
||||
|
||||
|
||||
assert "is_duplicate" in columns
|
||||
assert columns["is_duplicate"]["type"].__class__.__name__ in ("BOOLEAN", "Integer")
|
||||
|
||||
|
||||
assert "duplicate_of_id" in columns
|
||||
assert columns["duplicate_of_id"]["type"].__class__.__name__ in ("INTEGER", "Integer")
|
||||
|
||||
@@ -290,7 +290,7 @@ class TestSchemaMigrations:
|
||||
from sqlalchemy import inspect
|
||||
|
||||
inspector = inspect(engine)
|
||||
|
||||
|
||||
processing_log_columns = [col["name"] for col in inspector.get_columns("processing_logs")]
|
||||
assert "detail" in processing_log_columns
|
||||
|
||||
@@ -318,7 +318,7 @@ class TestInitDbErrors:
|
||||
mock_url.get_backend_name.return_value = "sqlite"
|
||||
mock_url.database = ":memory:"
|
||||
mock_make_url.return_value = mock_url
|
||||
|
||||
|
||||
mock_base.metadata.create_all.side_effect = exc.SQLAlchemyError("Database error")
|
||||
|
||||
with pytest.raises(exc.SQLAlchemyError):
|
||||
|
||||
Reference in New Issue
Block a user