Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/gui/archive_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

from core.archive_service import (
ArchiveCompressWorker, ArchiveExtractWorker, ArchiveTestWorker,
format_bytes, inspect_archive, inspect_zip, is_archive
format_bytes, inspect_archive
)
from translator import t

Expand Down
4 changes: 1 addition & 3 deletions tests/test_archive_gui_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@
- Archive-Filterung und Integritätsprüfung im ArchiveViewerDialog
"""

import os
import tarfile
import tempfile
import zipfile
from pathlib import Path
import pytest
from PySide6.QtWidgets import QApplication

from core.archive_service import is_archive, inspect_archive
from core.archive_service import is_archive
from gui.archive_dialog import ArchiveCompressDialog, ArchiveExtractDialog, ArchiveViewerDialog, _get_archive_stem
from gui.preview.preview_panel import ArchivePreview

Expand Down
6 changes: 1 addition & 5 deletions tests/test_tar_archive_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
ArchiveCompressWorker,
ArchiveExtractWorker,
ArchiveTestWorker,
ArchiveSummary,
ArchiveEntry,
ZipSlipSecurityError,
TarSlipSecurityError,
check_archive_integrity,
check_tar_integrity,
create_archive,
Expand All @@ -38,7 +35,6 @@
inspect_tar,
inspect_zip,
is_archive,
sanitize_archive_member_path,
)


Expand Down Expand Up @@ -195,7 +191,7 @@ def test_is_archive_detector(tmp_path: Path):
assert is_archive(zip_file) is True

tar_file = tmp_path / "test.tar.gz"
with tarfile.open(tar_file, "w:gz") as tf:
with tarfile.open(tar_file, "w:gz"):
pass
assert is_archive(tar_file) is True

Expand Down
Loading