Skip to content

Commit

Permalink
test: remove redundant @skip_if_encrypted from test_auto_detect_bank
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Jul 9, 2024
1 parent b1a61c6 commit ce55327
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/unit/test_bank_identifier/test_auto_detect_bank.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from unittest.mock import PropertyMock, patch

import pytest
from test_utils.skip import skip_if_encrypted

from monopoly.bank_detector import BankDetector
from monopoly.banks.base import BankBase
Expand Down Expand Up @@ -80,7 +79,6 @@ class MockBankWithOnlyTextIdentifier(BankBase):
encrypted_file_path = "path/to/encrypted.pdf"


@skip_if_encrypted
@patch.object(BankDetector, "metadata_items", new_callable=PropertyMock)
def test_auto_detect_bank_identified(
mock_metadata_items, monkeypatch, metadata_analyzer: BankDetector
Expand All @@ -99,7 +97,6 @@ def test_auto_detect_bank_identified(
assert bank.__name__ == MockBankTwo.__name__


@skip_if_encrypted
@patch.object(BankDetector, "metadata_items", new_callable=PropertyMock)
def test_detect_bank_not_identified(
mock_metadata_items, monkeypatch, metadata_analyzer: BankDetector
Expand All @@ -113,7 +110,6 @@ def test_detect_bank_not_identified(
assert not metadata_analyzer.detect_bank()


@skip_if_encrypted
@patch.object(BankDetector, "raw_text", new_callable=PropertyMock)
@patch.object(BankDetector, "metadata_items", new_callable=PropertyMock)
def test_detect_bank_with_text_identifier(
Expand All @@ -135,7 +131,6 @@ def test_detect_bank_with_text_identifier(
assert bank.__name__ == MockBankWithMultipleTextIdentifier.__name__


@skip_if_encrypted
@patch.object(BankDetector, "raw_text", new_callable=PropertyMock)
@patch.object(BankDetector, "metadata_items", new_callable=PropertyMock)
def test_detect_bank_with_not_matching_text_identifier(
Expand All @@ -155,7 +150,6 @@ def test_detect_bank_with_not_matching_text_identifier(
assert not metadata_analyzer.detect_bank()


@skip_if_encrypted
@patch.object(BankDetector, "raw_text", new_callable=PropertyMock)
@patch.object(BankDetector, "metadata_items", new_callable=PropertyMock)
def test_detect_bank_with_only_text_identifier(
Expand Down

0 comments on commit ce55327

Please sign in to comment.