mirror of
https://github.com/beshu-tech/deltaglider.git
synced 2026-03-17 23:13:43 +01:00
style: Fix linting issues in recursive delete test file
- Fix import ordering - Remove boolean equality comparison - Add missing newline at end of file All ruff and mypy checks now pass. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
||||
# Python
|
||||
ror-data-importer/
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"""Focused tests for recursive delete reference cleanup functionality."""
|
||||
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from deltaglider.app.cli.main import create_service
|
||||
@@ -161,6 +162,7 @@ class TestRecursiveDeleteReferenceCleanup:
|
||||
def test_cli_uses_core_service_method(self):
|
||||
"""Test that CLI rm -r command uses the core service delete_recursive method."""
|
||||
from click.testing import CliRunner
|
||||
|
||||
from deltaglider.app.cli.main import cli
|
||||
|
||||
runner = CliRunner()
|
||||
@@ -188,6 +190,7 @@ class TestRecursiveDeleteReferenceCleanup:
|
||||
def test_cli_dryrun_does_not_call_delete_recursive(self):
|
||||
"""Test that CLI dryrun does not call the actual delete_recursive method."""
|
||||
from click.testing import CliRunner
|
||||
|
||||
from deltaglider.app.cli.main import cli
|
||||
|
||||
runner = CliRunner()
|
||||
@@ -232,7 +235,7 @@ class TestRecursiveDeleteReferenceCleanup:
|
||||
from deltaglider.core import ObjectKey
|
||||
result = service.delete(ObjectKey(bucket="test-bucket", key="test/file.zip.delta"))
|
||||
|
||||
assert result["deleted"] == True
|
||||
assert result["deleted"]
|
||||
assert result["type"] == "delta"
|
||||
|
||||
def test_reference_cleanup_intelligence_basic(self):
|
||||
@@ -307,4 +310,4 @@ class TestRecursiveDeleteReferenceCleanup:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
pytest.main([__file__, "-v"])
|
||||
pytest.main([__file__, "-v"])
|
||||
|
||||
Reference in New Issue
Block a user