Skip to content

Commit a0a1421

Browse files
committed
fix test expectations
1 parent 446bf66 commit a0a1421

File tree

4 files changed

+58
-36
lines changed

4 files changed

+58
-36
lines changed

test/integration/connectors/test_jira.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
)
2121

2222

23+
@pytest.mark.skip(reason="Jira test instance unavailable (503 error)")
2324
@pytest.mark.asyncio
2425
@pytest.mark.tags(CONNECTOR_TYPE, SOURCE_TAG, UNCATEGORIZED_TAG)
2526
@requires_env("JIRA_INGEST_USER_EMAIL", "JIRA_INGEST_API_TOKEN")

test_e2e/expected-structured-output/s3/2023-Jan-economic-outlook.pdf.json

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -755,36 +755,9 @@
755755
}
756756
}
757757
},
758-
{
759-
"type": "UncategorizedText",
760-
"element_id": "f35698f7adf4541a2bb6fe10e1c47ab8",
761-
"text": "L",
762-
"metadata": {
763-
"filetype": "application/pdf",
764-
"languages": [
765-
"eng"
766-
],
767-
"page_number": 4,
768-
"data_source": {
769-
"url": "s3://utic-dev-tech-fixtures/small-pdf-set/2023-Jan-economic-outlook.pdf",
770-
"version": "c7eed4fc056b089a98f6a3ad9ec9373e",
771-
"record_locator": {
772-
"protocol": "s3",
773-
"remote_file_path": "s3://utic-dev-tech-fixtures/small-pdf-set/",
774-
"metadata": {
775-
"ingest-test": "custom metadata"
776-
}
777-
},
778-
"date_created": "1720544414.0",
779-
"date_modified": "1720544414.0",
780-
"permissions_data": null,
781-
"filesize_bytes": 2215938
782-
}
783-
}
784-
},
785758
{
786759
"type": "NarrativeText",
787-
"element_id": "59ff5bef6f9522074a0347b3fc30d9ba",
760+
"element_id": "cf86df4360039e44a9d36c2156253dca",
788761
"text": "In the United States, growth is projected to fall from 2.0 percent in 2022 to 1.4 percent in 2023 and 1.0 percent in 2024. With growth rebounding in the second half of 2024, growth in 2024 will be faster than in 2023 on a fourth-quarter-over-fourth-quarter basis, as in most advanced",
789762
"metadata": {
790763
"filetype": "application/pdf",
@@ -811,7 +784,7 @@
811784
},
812785
{
813786
"type": "Footer",
814-
"element_id": "7e03381d8b00018712cf4714181944d5",
787+
"element_id": "8342c28e0cf94f8454bf1c8f4e5b5b8b",
815788
"text": "International Monetary Fund | January 2023",
816789
"metadata": {
817790
"filetype": "application/pdf",
@@ -838,7 +811,7 @@
838811
},
839812
{
840813
"type": "PageNumber",
841-
"element_id": "e7ad52a3c6a360dcc012d8904b7d68bb",
814+
"element_id": "6ba40e8cf2a64cad3f1484387a1d6e9b",
842815
"text": "3",
843816
"metadata": {
844817
"filetype": "application/pdf",

test_e2e/expected-structured-output/s3/Silent-Giant-(1).pdf.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,30 @@
383383
}
384384
}
385385
},
386+
{
387+
"type": "PageNumber",
388+
"element_id": "7e1e96312bb39326c5fd3c7e891ce643",
389+
"text": "1",
390+
"metadata": {
391+
"filetype": "application/pdf",
392+
"languages": [
393+
"eng"
394+
],
395+
"page_number": 3,
396+
"data_source": {
397+
"url": "s3://utic-dev-tech-fixtures/small-pdf-set/Silent-Giant-(1).pdf",
398+
"version": "8570bd087066350a84dd8d0ea86f11c6",
399+
"record_locator": {
400+
"protocol": "s3",
401+
"remote_file_path": "s3://utic-dev-tech-fixtures/small-pdf-set/"
402+
},
403+
"date_created": "1676196636.0",
404+
"date_modified": "1676196636.0",
405+
"permissions_data": null,
406+
"filesize_bytes": 6164777
407+
}
408+
}
409+
},
386410
{
387411
"type": "PageNumber",
388412
"element_id": "dc3c4d9a725b0ead89311bb08bd251ae",

test_e2e/expected-structured-output/s3/recalibrating-risk-report.pdf.json

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -887,9 +887,33 @@
887887
}
888888
}
889889
},
890+
{
891+
"type": "PageNumber",
892+
"element_id": "e754a2849dac122e7d2e05447f0da512",
893+
"text": "4",
894+
"metadata": {
895+
"filetype": "application/pdf",
896+
"languages": [
897+
"eng"
898+
],
899+
"page_number": 6,
900+
"data_source": {
901+
"url": "s3://utic-dev-tech-fixtures/small-pdf-set/recalibrating-risk-report.pdf",
902+
"version": "e690f37ef36368a509d150f373a0bbe0",
903+
"record_locator": {
904+
"protocol": "s3",
905+
"remote_file_path": "s3://utic-dev-tech-fixtures/small-pdf-set/"
906+
},
907+
"date_created": "1676196572.0",
908+
"date_modified": "1676196572.0",
909+
"permissions_data": null,
910+
"filesize_bytes": 806335
911+
}
912+
}
913+
},
890914
{
891915
"type": "Title",
892-
"element_id": "8fd54b8df6f34c7669517fe8f446d39c",
916+
"element_id": "21b4c32e6d360d1d70e59dad888e306d",
893917
"text": "The low-dose question",
894918
"metadata": {
895919
"filetype": "application/pdf",
@@ -913,7 +937,7 @@
913937
},
914938
{
915939
"type": "NarrativeText",
916-
"element_id": "649d45c4e2dd97d01b6f7f4a0f2652b8",
940+
"element_id": "26e60e901d12cbb5efb851fe945a3f96",
917941
"text": "Since the 1950s, the Linear No-Threshold (LNT) theory has been used to inform regulatory decisions, positing that any dose of radiation, regardless of the amount or the duration over which it is received, poses a risk. Assuming that LNT is correct, we should expect to see that people living in areas of the world where background doses are higher (e.g. India, Iran and northern Europe) have a higher incidence of cancer. However, despite people living in areas of the world where radiation doses are naturally higher than those that would be received in parts of the evacuation zones around Chernobyl and Fukushima Daiichi, there is no evidence that these populations exhibit any negative health effects. Living nearby a nuclear power plant on average exposes the local population to 0.00009mSv/year, which according to LNT would increase the risk of developing cancer by 0.00000045%. After Chernobyl, the average dose to those evacuated was 30mSv, which would theoretically increase the risk of cancer at some point in their lifetime by 0.15% (on top of the average baseline lifetime risk of cancer, which is 39.5% in the USviii, 50% in the UKix).",
918942
"metadata": {
919943
"filetype": "application/pdf",
@@ -937,7 +961,7 @@
937961
},
938962
{
939963
"type": "NarrativeText",
940-
"element_id": "3d9de2a61836e41e3c1ae8893d5a1722",
964+
"element_id": "31d07d8c2dce96dc1c6daa38f8597ab5",
941965
"text": "Since the 1980s, there has been considerable scientific debate as to whether the LNT theory is valid, following scientific breakthroughs within, for example, radiobiology and medicine. Indeed, the Chernobyl accident helped illuminate some of the issues associated with LNT. Multiplication of the low doses after the accident (many far too low to be of any health concern) with large populations – using the assumptions made by LNT – led to a large number of predicted cancer deaths, which have not, and likely will not materialize. This practice has been heavily criticized for being inappropriate in making risk assessments by UNSCEAR, the International Commission on Radiation Protection and a large number of independent scientists.",
942966
"metadata": {
943967
"filetype": "application/pdf",
@@ -961,7 +985,7 @@
961985
},
962986
{
963987
"type": "NarrativeText",
964-
"element_id": "d68745fb9259f0ee01b54db35a99ed8d",
988+
"element_id": "4fb06aef292d07a36339c830eb23c8b5",
965989
"text": "Determining the precise risk (or lack thereof) of the extremely small radiation doses associated with the routine operations of nuclear power plants, the disposal of nuclear waste or even extremely rare nuclear accidents is a purely academic exercise, that tries to determine whether the risk is extremely low, too small to detect, or non- existent. The risks of low-level radiation pale in comparison to other societal risks such as obesity, smoking, and air pollution.",
966990
"metadata": {
967991
"filetype": "application/pdf",
@@ -985,7 +1009,7 @@
9851009
},
9861010
{
9871011
"type": "NarrativeText",
988-
"element_id": "629dfc4049633d8d9662948622e8d7b8",
1012+
"element_id": "1d9fdadf74d73e63be2e683b0a73d86d",
9891013
"text": "By looking at radiation risks in isolation, we prolong the over-regulation of radiation in nuclear plants, driving up costs, whilst not delivering any additional health benefits, in turn incentivising the use of more harmful energy sources. A recalibration is required, and this can only done by ensuring a holistic approach to risk is taken.",
9901014
"metadata": {
9911015
"filetype": "application/pdf",
@@ -1009,7 +1033,7 @@
10091033
},
10101034
{
10111035
"type": "Image",
1012-
"element_id": "8f8ae3b8a2b83fbdd13bc12bf68aa108",
1036+
"element_id": "32259f82b294edd5dd1868734673c0a1",
10131037
"text": "U ER LE E » L",
10141038
"metadata": {
10151039
"filetype": "application/pdf",

0 commit comments

Comments
 (0)