mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-21 04:52:40 +00:00
Chore: drop the consumer duplicate ASN test
This commit is contained in:
1 parent
ce4bd6bc8b
commit
3383f6a38d
1 file changed
-23
@@ -555,29 +555,6 @@ class TestConsumerZoneOcr:
|
||||
assert document.title == expected_title
|
||||
assert custom_field_value(document, code_field) == expected_code
|
||||
|
||||
@pytest.mark.usefixtures("mock_render")
|
||||
def test_duplicate_asn_is_checked_when_writing(
|
||||
self,
|
||||
consume: Callable[..., Document],
|
||||
) -> None:
|
||||
"""
|
||||
GIVEN:
|
||||
- A template with title and ASN zones
|
||||
- Another document already using the zone's ASN
|
||||
WHEN:
|
||||
- A matching document is consumed
|
||||
THEN:
|
||||
- The ASN is not written
|
||||
- The title from the same template is written
|
||||
"""
|
||||
DocumentFactory(archive_serial_number=777)
|
||||
make_template(targets=("Title", "ASN"))
|
||||
|
||||
document = consume()
|
||||
|
||||
assert document.archive_serial_number is None
|
||||
assert document.title == "Zone title"
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"failing",
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user