From 567c77cc19f9142bdff494cf285c1dd4de0f42b3 Mon Sep 17 00:00:00 2001 From: Clemens Rudert Date: Mon, 27 Nov 2023 11:26:44 +0100 Subject: [PATCH] add test case --- tests/core/sources/test_document_oereblex.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/core/sources/test_document_oereblex.py b/tests/core/sources/test_document_oereblex.py index 02abc3b9a1..ae187c1d78 100644 --- a/tests/core/sources/test_document_oereblex.py +++ b/tests/core/sources/test_document_oereblex.py @@ -297,6 +297,9 @@ def test_read_related_notice_as_main(oereblex_test_config): assert isinstance(document.responsible_office, OfficeRecord) assert document.responsible_office.name == {'de': '-'} assert document.responsible_office.office_at_web is None + assert source.records[0].responsible_office.office_at_web == { + 'de': "http%3A%2F%2Fwww.zihlschlacht-sitterdorf.ch" + } assert document.published_from == datetime.date(1970, 1, 1) assert document.index == 40