コード例 #1
0
def test_json_should_not_include_detected_country_when_not_set():
    task = SandboxSupplementaryDocumentTextDataExtractionTaskBuilder().build()

    json = task.to_json()
    json_result = json.get("result").to_json()

    assert json_result.get("detected_country") is None
コード例 #2
0
def test_json_should_exclude_document_fields_when_not_set():
    task = SandboxSupplementaryDocumentTextDataExtractionTaskBuilder().build()

    json = task.to_json()

    assert json.get("result").to_json().get("document_fields") is None