Avoid false garbage classification for UPD mentions
Deploy contracts-flask / validate (push) Canceled after 0s
Deploy contracts-flask / validate (push) Canceled after 0s
This commit is contained in:
@@ -36,6 +36,13 @@ class TestGarbageHeader:
|
||||
def test_not_garbage(self):
|
||||
assert _is_garbage_by_header("ДОГОВОР № 03700_1 об оказании услуг") is False
|
||||
|
||||
def test_upd_mention_in_contract_is_not_garbage(self):
|
||||
text = "Договор № 03700. Оплата производится на основании УПД и счета."
|
||||
assert _is_garbage_by_header(text) is False
|
||||
|
||||
def test_upd_document_header_is_garbage(self):
|
||||
assert _is_garbage_by_header("УПД № 123 от 01.01.2026") is True
|
||||
|
||||
|
||||
class TestSafeJsonParse:
|
||||
def test_valid(self):
|
||||
|
||||
Reference in New Issue
Block a user