Skip to content

Commit

Permalink
fresh fixtures and fixing occ_download_cancel bug (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnwllr authored Oct 4, 2024
1 parent 3e1a964 commit 1450f32
Show file tree
Hide file tree
Showing 54 changed files with 18,708 additions and 19,767 deletions.
10 changes: 7 additions & 3 deletions test/test-occurrences-download_cancel.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
"""Tests for occurrences module - download_cancle methods"""
from pygbif import occurrences as occ
import vcr
import os
import pytest

@vcr.use_cassette(
"test/vcr_cassettes/test_download_cancel.yaml", filter_headers=["authorization"]
)
IN_GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS") == "true"
print(IN_GITHUB_ACTIONS)

@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Test doesn't work well in Github Actions.")
@vcr.use_cassette("test/vcr_cassettes/test_download_cancel.yaml", filter_headers=["authorization"])
def test_download_cancel():
"occurrences.download_cancel - basic test"
name_key = "156780401" # for "Bear picornavirus 1"
Expand Down
2 changes: 1 addition & 1 deletion test/test-occurrences-download_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_lookup_predicates(self):
self.assertEqual(req.payload["predicate"]["type"], "or")

# predicate addition
req.add_predicate("YEAR", "2000", ">=")
req.add_predicate_dict({"type":"greaterThanOrEquals","key":"YEAR", "value":"2000"})
self.assertEqual(
req.payload["predicate"]["predicates"][0]["type"], "greaterThanOrEquals"
)
Expand Down
8 changes: 4 additions & 4 deletions test/vcr_cassettes/test-occurrences-citation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.32.3
- python-requests/2.31.0
method: GET
uri: https://api.gbif.org/v1/occurrence/download/0235283-220831081235567/citation
response:
Expand All @@ -21,7 +21,7 @@ interactions:
Accept-Ranges:
- bytes
Age:
- '1789'
- '0'
Cache-Control:
- public, max-age=3603
Connection:
Expand All @@ -31,7 +31,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 02 Oct 2024 08:19:22 GMT
- Fri, 04 Oct 2024 06:59:59 GMT
Expires:
- '0'
Pragma:
Expand All @@ -45,7 +45,7 @@ interactions:
X-Frame-Options:
- DENY
X-Varnish:
- 537231613 407639130
- '658835659'
X-XSS-Protection:
- 1; mode=block
status:
Expand Down
57 changes: 0 additions & 57 deletions test/vcr_cassettes/test-occurrences-download_sql.yaml

This file was deleted.

12 changes: 6 additions & 6 deletions test/vcr_cassettes/test_count.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ interactions:
Connection:
- keep-alive
user-agent:
- python-requests/2.31.0,pygbif/0.6.3
- python-requests/2.31.0,pygbif/0.6.4
method: GET
uri: https://api.gbif.org/v1/occurrence/count?taxonKey=3329049
response:
body:
string: '874'
string: '765'
headers:
Accept-Ranges:
- bytes
Expand All @@ -24,16 +24,16 @@ interactions:
- public, max-age=600
Connection:
- keep-alive
Content-Length:
- '3'
Content-Type:
- application/json
Date:
- Fri, 01 Mar 2024 08:32:14 GMT
- Fri, 04 Oct 2024 07:00:00 GMT
Expires:
- '0'
Pragma:
- no-cache
Transfer-Encoding:
- chunked
Vary:
- Origin, Access-Control-Request-Method, Access-Control-Request-Headers
Via:
Expand All @@ -43,7 +43,7 @@ interactions:
X-Frame-Options:
- DENY
X-Varnish:
- '726239410'
- '690717278'
X-XSS-Protection:
- 1; mode=block
status:
Expand Down
12 changes: 6 additions & 6 deletions test/vcr_cassettes/test_count_basisofrecord.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@ interactions:
Connection:
- keep-alive
user-agent:
- python-requests/2.31.0,pygbif/0.6.3
- python-requests/2.31.0,pygbif/0.6.4
method: GET
uri: https://api.gbif.org/v1/occurrence/counts/basisOfRecord
response:
body:
string: '{"HUMAN_OBSERVATION":2300698840,"PRESERVED_SPECIMEN":237830598,"MATERIAL_SAMPLE":55644452,"OBSERVATION":20774268,"MACHINE_OBSERVATION":20542140,"OCCURRENCE":19297806,"FOSSIL_SPECIMEN":10246202,"MATERIAL_CITATION":2664586,"LIVING_SPECIMEN":2000680}'
string: '{"HUMAN_OBSERVATION":2646518467,"PRESERVED_SPECIMEN":251695785,"MATERIAL_SAMPLE":64609236,"MACHINE_OBSERVATION":23363833,"OCCURRENCE":21038441,"OBSERVATION":17281076,"FOSSIL_SPECIMEN":9145348,"MATERIAL_CITATION":8383909,"LIVING_SPECIMEN":2025864}'
headers:
Accept-Ranges:
- bytes
Age:
- '657'
- '0'
Cache-Control:
- public, max-age=600
Connection:
- keep-alive
Content-Length:
- '247'
- '246'
Content-Type:
- application/json
Date:
- Fri, 01 Mar 2024 08:21:17 GMT
- Fri, 04 Oct 2024 07:00:01 GMT
Expires:
- '0'
Pragma:
Expand All @@ -43,7 +43,7 @@ interactions:
X-Frame-Options:
- DENY
X-Varnish:
- 704940086 710148283
- '689340585'
X-XSS-Protection:
- 1; mode=block
status:
Expand Down
12 changes: 6 additions & 6 deletions test/vcr_cassettes/test_count_countries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@ interactions:
Connection:
- keep-alive
user-agent:
- python-requests/2.31.0,pygbif/0.6.3
- python-requests/2.31.0,pygbif/0.6.4
method: GET
uri: https://api.gbif.org/v1/occurrence/counts/countries?publishingCountry=DE
response:
body:
string: "{\"GERMANY\":46156659,\"SPAIN\":398639,\"ITALY\":353999,\"GREECE\":342688,\"AUSTRIA\":298160,\"BELGIUM\":282338,\"FRANCE\":224973,\"UNITED_STATES\":219872,\"AUSTRALIA\":189242,\"PORTUGAL\":158426,\"NETHERLANDS\":133610,\"ANTARCTICA\":128853,\"PERU\":117126,\"BRAZIL\":111931,\"SOUTH_AFRICA\":105631,\"RUSSIAN_FEDERATION\":104266,\"POLAND\":103005,\"JAPAN\":99014,\"NORWAY\":96026,\"SWITZERLAND\":91219,\"NAMIBIA\":89677,\"SWEDEN\":80245,\"EL_SALVADOR\":76821,\"DENMARK\":71294,\"TURKEY\":69870,\"TANZANIA\":65835,\"UNKNOWN\":65399,\"UNITED_KINGDOM\":62923,\"COSTA_RICA\":62329,\"CHINA\":59116,\"SVALBARD_JAN_MAYEN\":58132,\"NEW_ZEALAND\":58014,\"ECUADOR\":56935,\"BURKINA_FASO\":55799,\"INDONESIA\":55758,\"TAIWAN\":54427,\"MEXICO\":54101,\"INDIA\":48616,\"CHILE\":48136,\"GREENLAND\":47782,\"OMAN\":45184,\"COLOMBIA\":45133,\"CZECH_REPUBLIC\":44885,\"IRELAND\":44070,\"MOROCCO\":43327,\"PHILIPPINES\":42745,\"BAHAMAS\":42114,\"VENEZUELA\":38638,\"YEMEN\":38362,\"CANADA\":37990,\"CROATIA\":37598,\"ROMANIA\":37407,\"VIETNAM\":37019,\"MARSHALL_ISLANDS\":35326,\"HEARD_MCDONALD_ISLANDS\":34689,\"MADAGASCAR\":32373,\"HUNGARY\":32306,\"KENYA\":31469,\"CUBA\":30945,\"VANUATU\":30929,\"BOLIVIA\":28178,\"ICELAND\":27827,\"CAMEROON\":27628,\"PAPUA_NEW_GUINEA\":27474,\"WESTERN_SAHARA\":27362,\"GUATEMALA\":25420,\"GEORGIA\":24835,\"IRAN\":24319,\"MALDIVES\":23637,\"BULGARIA\":23537,\"ARGENTINA\":22590,\"ETHIOPIA\":22407,\"EGYPT\":22309,\"GHANA\":21278,\"THAILAND\":21243,\"MALAYSIA\":20948,\"CYPRUS\":20584,\"SEYCHELLES\":19500,\"ISRAEL\":18576,\"SRI_LANKA\":18148,\"MARTINIQUE\":18122,\"SENEGAL\":17973,\"CAPE_VERDE\":16960,\"ANGOLA\":16090,\"PANAMA\":15523,\"SLOVENIA\":14509,\"NEW_CALEDONIA\":13692,\"GUYANA\":13129,\"SLOVAKIA\":12618,\"MICRONESIA\":12442,\"FINLAND\":12116,\"BENIN\":11581,\"UKRAINE\":11325,\"UGANDA\":10974,\"TUNISIA\":10633,\"SUDAN\":10562,\"CONGO_DEMOCRATIC_REPUBLIC\":10526,\"GAMBIA\":10278,\"ARMENIA\":10137,\"CONGO\":9958,\"SAINT_HELENA_ASCENSION_TRISTAN_DA_CUNHA\":9638,\"FRENCH_SOUTHERN_TERRITORIES\":9442,\"NEPAL\":9302,\"MALAWI\":8954,\"SURINAME\":8796,\"DOMINICAN_REPUBLIC\":8657,\"ESTONIA\":8638,\"NORTHERN_MARIANA_ISLANDS\":8458,\"NIGERIA\":8444,\"ALGERIA\":8228,\"MALI\":8158,\"SERBIA\":7999,\"SYRIA\":7590,\"BOTSWANA\":7502,\"MONGOLIA\":7232,\"LUXEMBOURG\":7142,\"PUERTO_RICO\":7063,\"GABON\":7051,\"PARAGUAY\":6895,\"ALBANIA\":6330,\"R\xC9UNION\":6285,\"FRENCH_GUIANA\":6269,\"ZIMBABWE\":6075,\"SOMALIA\":6046,\"MONTENEGRO\":6016,\"BOSNIA_HERZEGOVINA\":5974,\"PAKISTAN\":5912,\"MACEDONIA\":5724,\"MAURITIUS\":5556,\"AFGHANISTAN\":5397,\"NICARAGUA\":5375,\"TRINIDAD_TOBAGO\":5328,\"SAUDI_ARABIA\":5163,\"BRITISH_INDIAN_OCEAN_TERRITORY\":5144,\"JAMAICA\":5106,\"KYRGYZSTAN\":5038,\"ZAMBIA\":4931,\"TONGA\":4855,\"JORDAN\":4782,\"C\xD4TE_DIVOIRE\":4733,\"UZBEKISTAN\":4696,\"LIBYA\":4669,\"GRENADA\":4477,\"AZERBAIJAN\":4252,\"BELARUS\":4190,\"COOK_ISLANDS\":4121,\"SOUTH_GEORGIA_SANDWICH_ISLANDS\":4016,\"LEBANON\":3915,\"UNITED_ARAB_EMIRATES\":3811,\"FIJI\":3735,\"LAO\":3710,\"URUGUAY\":3473,\"KOREA_SOUTH\":3402,\"HAITI\":3324,\"HONDURAS\":3319,\"MYANMAR\":3290,\"SINGAPORE\":3255,\"RWANDA\":3241,\"EQUATORIAL_GUINEA\":3169,\"LIBERIA\":3158,\"FAROE_ISLANDS\":3068,\"LATVIA\":3016,\"KAZAKHSTAN\":2922,\"IRAQ\":2805,\"FRENCH_POLYNESIA\":2789,\"MOZAMBIQUE\":2768,\"TAJIKISTAN\":2727,\"GUINEA\":2711,\"UNITED_STATES_OUTLYING_ISLANDS\":2526,\"SOLOMON_ISLANDS\":2524,\"GUINEA_BISSAU\":2498,\"MAURITANIA\":2304,\"CAYMAN_ISLANDS\":2284,\"TOGO\":2253,\"SAO_TOME_PRINCIPE\":2213,\"FALKLAND_ISLANDS\":2136,\"LITHUANIA\":2045,\"MALTA\":2044,\"BERMUDA\":1991,\"COCOS_ISLANDS\":1851,\"SIERRA_LEONE\":1838,\"TURKMENISTAN\":1827,\"BRUNEI_DARUSSALAM\":1744,\"ERITREA\":1580,\"CAMBODIA\":1551,\"CENTRAL_AFRICAN_REPUBLIC\":1364,\"HONG_KONG\":1290,\"CHAD\":1262,\"GUADELOUPE\":1260,\"LIECHTENSTEIN\":1234,\"ARUBA\":1217,\"BHUTAN\":1214,\"SAMOA\":1172,\"KIRIBATI\":1042,\"BANGLADESH\":1041,\"KOSOVO\":1033,\"NIGER\":900,\"VIRGIN_ISLANDS\":789,\"ANGUILLA\":737,\"DOMINICA\":712,\"SWAZILAND\":681,\"COMOROS\":648,\"KOREA_NORTH\":567,\"ANDORRA\":504,\"BOUVET_ISLAND\":502,\"BELIZE\":489,\"BURUNDI\":467,\"PALESTINIAN_TERRITORY\":461,\"PALAU\":388,\"GIBRALTAR\":378,\"GUERNSEY\":377,\"BARBADOS\":363,\"SAINT_LUCIA\":329,\"NORFOLK_ISLAND\":319,\"GUAM\":311,\"MONTSERRAT\":310,\"CURA\xC7AO\":308,\"ANTIGUA_BARBUDA\":300,\"MOLDOVA\":290,\"VIRGIN_ISLANDS_BRITISH\":268,\"DJIBOUTI\":259,\"KUWAIT\":253,\"BONAIRE_SINT_EUSTATIUS_SABA\":222,\"SAN_MARINO\":219,\"BAHRAIN\":199,\"NAURU\":192,\"MONACO\":159,\"ALAND_ISLANDS\":151,\"SAINT_VINCENT_GRENADINES\":150,\"SOUTH_SUDAN\":144,\"LESOTHO\":140,\"SAINT_KITTS_NEVIS\":125,\"TIMOR_LESTE\":93,\"JERSEY\":68,\"CHRISTMAS_ISLAND\":62,\"WALLIS_FUTUNA\":60,\"MACAO\":57,\"AMERICAN_SAMOA\":57,\"MAYOTTE\":45,\"QATAR\":42,\"NIUE\":41,\"SINT_MAARTEN\":37,\"ISLE_OF_MAN\":31,\"TURKS_CAICOS_ISLANDS\":26,\"PITCAIRN\":26,\"SAINT_PIERRE_MIQUELON\":18,\"SAINT_MARTIN_FRENCH\":18,\"TUVALU\":15,\"INTERNATIONAL_WATERS\":9,\"VATICAN\":8,\"SAINT_BARTH\xC9LEMY\":4,\"TOKELAU\":1}"
string: "{\"GERMANY\":48727786,\"SPAIN\":403995,\"SAUDI_ARABIA\":396732,\"ITALY\":355773,\"GREECE\":343073,\"AUSTRIA\":299325,\"BELGIUM\":282482,\"FRANCE\":229935,\"UNITED_STATES\":220434,\"AUSTRALIA\":189572,\"PORTUGAL\":158908,\"NETHERLANDS\":135433,\"ANTARCTICA\":129914,\"PERU\":117220,\"BRAZIL\":112465,\"SOUTH_AFRICA\":105850,\"POLAND\":104729,\"RUSSIAN_FEDERATION\":104548,\"JAPAN\":99596,\"NORWAY\":96110,\"SWITZERLAND\":92187,\"NAMIBIA\":89857,\"SWEDEN\":80410,\"EL_SALVADOR\":77257,\"TURKEY\":71926,\"DENMARK\":71687,\"TANZANIA\":66280,\"UNKNOWN\":66117,\"UNITED_KINGDOM\":63211,\"COSTA_RICA\":62578,\"CHINA\":59158,\"SVALBARD_JAN_MAYEN\":58230,\"NEW_ZEALAND\":58080,\"ECUADOR\":57087,\"INDONESIA\":55820,\"BURKINA_FASO\":55802,\"TAIWAN\":54750,\"MEXICO\":54193,\"INDIA\":48715,\"CHILE\":48258,\"GREENLAND\":47746,\"CZECH_REPUBLIC\":45570,\"OMAN\":45374,\"COLOMBIA\":45240,\"IRELAND\":44157,\"MOROCCO\":43826,\"PHILIPPINES\":42827,\"BAHAMAS\":42110,\"VENEZUELA\":38763,\"YEMEN\":38364,\"CANADA\":38091,\"ROMANIA\":37871,\"CROATIA\":37757,\"VIETNAM\":36999,\"MARSHALL_ISLANDS\":35321,\"HEARD_MCDONALD_ISLANDS\":34689,\"HUNGARY\":32512,\"MADAGASCAR\":32494,\"KENYA\":31586,\"CUBA\":31004,\"VANUATU\":30931,\"BOLIVIA\":28444,\"ICELAND\":28061,\"WESTERN_SAHARA\":27717,\"CAMEROON\":27615,\"PAPUA_NEW_GUINEA\":27445,\"GUATEMALA\":25452,\"GEORGIA\":25086,\"IRAN\":24812,\"BULGARIA\":23782,\"MALDIVES\":23643,\"EGYPT\":22898,\"ARGENTINA\":22771,\"ETHIOPIA\":22537,\"THAILAND\":21422,\"GHANA\":21297,\"MALAYSIA\":21003,\"CYPRUS\":20630,\"SEYCHELLES\":19511,\"ISRAEL\":18672,\"SRI_LANKA\":18381,\"SENEGAL\":18210,\"MARTINIQUE\":18125,\"CAPE_VERDE\":17167,\"ANGOLA\":16204,\"PANAMA\":15565,\"SLOVENIA\":14594,\"NEW_CALEDONIA\":13702,\"GUYANA\":13133,\"SLOVAKIA\":12870,\"MICRONESIA\":12446,\"FINLAND\":12216,\"BENIN\":11728,\"UKRAINE\":11466,\"UGANDA\":10978,\"TUNISIA\":10679,\"CONGO_DEMOCRATIC_REPUBLIC\":10614,\"SUDAN\":10553,\"GAMBIA\":10318,\"ARMENIA\":10150,\"CONGO\":9956,\"SAINT_HELENA_ASCENSION_TRISTAN_DA_CUNHA\":9635,\"FRENCH_SOUTHERN_TERRITORIES\":9418,\"NEPAL\":9380,\"MALAWI\":8981,\"SURINAME\":8795,\"DOMINICAN_REPUBLIC\":8725,\"ESTONIA\":8660,\"NIGERIA\":8459,\"NORTHERN_MARIANA_ISLANDS\":8457,\"ALGERIA\":8263,\"MALI\":8174,\"SERBIA\":8008,\"SYRIA\":7767,\"BOTSWANA\":7511,\"LUXEMBOURG\":7359,\"MONGOLIA\":7264,\"PUERTO_RICO\":7079,\"GABON\":7064,\"PARAGUAY\":6921,\"ALBANIA\":6433,\"R\xC9UNION\":6340,\"FRENCH_GUIANA\":6287,\"ZIMBABWE\":6083,\"MONTENEGRO\":6051,\"SOMALIA\":6037,\"BOSNIA_HERZEGOVINA\":6000,\"PAKISTAN\":5953,\"MACEDONIA\":5736,\"MAURITIUS\":5558,\"KYRGYZSTAN\":5542,\"NICARAGUA\":5404,\"AFGHANISTAN\":5401,\"TRINIDAD_TOBAGO\":5331,\"BRITISH_INDIAN_OCEAN_TERRITORY\":5145,\"JAMAICA\":5134,\"ZAMBIA\":4965,\"TONGA\":4859,\"JORDAN\":4817,\"C\xD4TE_DIVOIRE\":4738,\"LIBYA\":4728,\"UZBEKISTAN\":4703,\"GRENADA\":4477,\"AZERBAIJAN\":4270,\"BELARUS\":4196,\"COOK_ISLANDS\":4122,\"SOUTH_GEORGIA_SANDWICH_ISLANDS\":4010,\"LEBANON\":3971,\"UNITED_ARAB_EMIRATES\":3813,\"FIJI\":3807,\"LAO\":3743,\"URUGUAY\":3482,\"KOREA_SOUTH\":3439,\"HONDURAS\":3335,\"HAITI\":3330,\"MYANMAR\":3318,\"SINGAPORE\":3247,\"RWANDA\":3238,\"EQUATORIAL_GUINEA\":3184,\"LIBERIA\":3164,\"FAROE_ISLANDS\":3074,\"LATVIA\":3062,\"KAZAKHSTAN\":2932,\"MAURITANIA\":2840,\"IRAQ\":2840,\"FRENCH_POLYNESIA\":2800,\"MOZAMBIQUE\":2764,\"TAJIKISTAN\":2736,\"GUINEA\":2723,\"UNITED_STATES_OUTLYING_ISLANDS\":2526,\"SOLOMON_ISLANDS\":2526,\"GUINEA_BISSAU\":2497,\"CAYMAN_ISLANDS\":2284,\"TOGO\":2251,\"SAO_TOME_PRINCIPE\":2226,\"FALKLAND_ISLANDS\":2142,\"LITHUANIA\":2053,\"MALTA\":2047,\"BERMUDA\":1994,\"TURKMENISTAN\":1849,\"COCOS_ISLANDS\":1849,\"SIERRA_LEONE\":1843,\"BRUNEI_DARUSSALAM\":1744,\"ERITREA\":1571,\"CAMBODIA\":1560,\"CENTRAL_AFRICAN_REPUBLIC\":1364,\"HONG_KONG\":1290,\"GUADELOUPE\":1266,\"CHAD\":1261,\"LIECHTENSTEIN\":1243,\"ARUBA\":1217,\"BHUTAN\":1215,\"SAMOA\":1202,\"BANGLADESH\":1041,\"KIRIBATI\":1039,\"KOSOVO\":1035,\"NIGER\":902,\"VIRGIN_ISLANDS\":781,\"ANGUILLA\":737,\"DOMINICA\":721,\"SWAZILAND\":696,\"COMOROS\":655,\"KOREA_NORTH\":568,\"ANDORRA\":506,\"BOUVET_ISLAND\":498,\"BELIZE\":488,\"BURUNDI\":469,\"PALESTINIAN_TERRITORY\":462,\"PALAU\":392,\"GIBRALTAR\":379,\"GUERNSEY\":378,\"BARBADOS\":366,\"SAINT_LUCIA\":332,\"NORFOLK_ISLAND\":322,\"CURA\xC7AO\":321,\"GUAM\":311,\"MONTSERRAT\":310,\"ANTIGUA_BARBUDA\":305,\"MOLDOVA\":290,\"VIRGIN_ISLANDS_BRITISH\":270,\"DJIBOUTI\":256,\"KUWAIT\":253,\"BONAIRE_SINT_EUSTATIUS_SABA\":222,\"SAN_MARINO\":219,\"BAHRAIN\":199,\"NAURU\":192,\"MONACO\":161,\"SAINT_VINCENT_GRENADINES\":156,\"ALAND_ISLANDS\":151,\"SOUTH_SUDAN\":144,\"LESOTHO\":142,\"SAINT_KITTS_NEVIS\":125,\"TIMOR_LESTE\":94,\"JERSEY\":68,\"CHRISTMAS_ISLAND\":62,\"WALLIS_FUTUNA\":60,\"MACAO\":57,\"AMERICAN_SAMOA\":52,\"MAYOTTE\":48,\"QATAR\":42,\"NIUE\":41,\"SINT_MAARTEN\":37,\"ISLE_OF_MAN\":31,\"PITCAIRN\":26,\"TURKS_CAICOS_ISLANDS\":24,\"SAINT_PIERRE_MIQUELON\":18,\"SAINT_MARTIN_FRENCH\":18,\"TUVALU\":15,\"INTERNATIONAL_WATERS\":9,\"VATICAN\":8,\"SAINT_BARTH\xC9LEMY\":4,\"TOKELAU\":1}"
headers:
Accept-Ranges:
- bytes
Age:
- '657'
- '0'
Cache-Control:
- public, max-age=600
Connection:
- keep-alive
Content-Length:
- '4499'
- '4501'
Content-Type:
- application/json
Date:
- Fri, 01 Mar 2024 08:21:18 GMT
- Fri, 04 Oct 2024 07:00:04 GMT
Expires:
- '0'
Pragma:
Expand All @@ -43,7 +43,7 @@ interactions:
X-Frame-Options:
- DENY
X-Varnish:
- 713983860 707724866
- '685539742'
X-XSS-Protection:
- 1; mode=block
status:
Expand Down
8 changes: 4 additions & 4 deletions test/vcr_cassettes/test_count_datasets.yaml

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions test/vcr_cassettes/test_count_publishingcountries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,31 @@ interactions:
Connection:
- keep-alive
user-agent:
- python-requests/2.31.0,pygbif/0.6.3
- python-requests/2.31.0,pygbif/0.6.4
method: GET
uri: https://api.gbif.org/v1/occurrence/counts/publishingCountries?country=DE
response:
body:
string: '{"GERMANY":46159043,"NETHERLANDS":3177769,"UNITED_STATES":2054794,"FRANCE":1853329,"UNITED_KINGDOM":1029846,"BELGIUM":499598,"UNKNOWN":253872,"SWITZERLAND":174433,"AUSTRIA":118127,"ESTONIA":117088,"SWEDEN":70428,"COLOMBIA":64490,"FINLAND":40346,"DENMARK":38689,"LUXEMBOURG":37201,"POLAND":28959,"NORWAY":24433,"SPAIN":20947,"AUSTRALIA":17396,"BRAZIL":10976,"CANADA":10560,"JAPAN":8970,"RUSSIAN_FEDERATION":7729,"CZECH_REPUBLIC":7386,"NEW_ZEALAND":6559,"SOUTH_AFRICA":5751,"CHINA":5419,"MEXICO":2280,"ARGENTINA":2047,"PORTUGAL":2025,"ITALY":2001,"ECUADOR":1839,"BULGARIA":1469,"PANAMA":1222,"UKRAINE":721,"ISRAEL":425,"COSTA_RICA":363,"TAIWAN":240,"NICARAGUA":232,"GREECE":117,"CHILE":83,"GHANA":73,"VENEZUELA":36,"PERU":31,"KOREA_SOUTH":24,"URUGUAY":12,"ARMENIA":8,"TAJIKISTAN":7,"MOROCCO":7,"NIGERIA":4,"GUATEMALA":3,"TRINIDAD_TOBAGO":2,"SLOVENIA":2,"ZIMBABWE":1}'
string: '{"GERMANY":48727786,"NETHERLANDS":4307810,"UNITED_STATES":2579423,"FRANCE":1853730,"UNITED_KINGDOM":1043610,"BELGIUM":508346,"UNKNOWN":308338,"SWITZERLAND":209995,"AUSTRIA":120300,"ESTONIA":118484,"POLAND":72100,"SWEDEN":72035,"COLOMBIA":66557,"LUXEMBOURG":43624,"FINLAND":42173,"DENMARK":42035,"NORWAY":24715,"AUSTRALIA":20442,"SPAIN":20217,"CANADA":12723,"BRAZIL":11556,"JAPAN":9110,"NEW_ZEALAND":8030,"RUSSIAN_FEDERATION":7741,"CZECH_REPUBLIC":7543,"CHINA":5419,"SOUTH_AFRICA":4659,"MEXICO":2535,"PORTUGAL":2251,"ARGENTINA":2105,"ITALY":2073,"ECUADOR":1911,"BULGARIA":1572,"PANAMA":1156,"UKRAINE":726,"TAIWAN":494,"ISRAEL":450,"COSTA_RICA":415,"CHILE":278,"NICARAGUA":232,"GREECE":132,"HUNGARY":125,"GHANA":73,"VENEZUELA":63,"LITHUANIA":52,"PERU":31,"KOREA_SOUTH":24,"URUGUAY":13,"ARMENIA":8,"TAJIKISTAN":7,"MOROCCO":7,"NIGERIA":4,"GUATEMALA":4,"TRINIDAD_TOBAGO":2,"SLOVENIA":2,"ZIMBABWE":1}'
headers:
Accept-Ranges:
- bytes
Age:
- '657'
- '0'
Cache-Control:
- public, max-age=600
Connection:
- keep-alive
Content-Length:
- '864'
Content-Type:
- application/json
Date:
- Fri, 01 Mar 2024 08:21:19 GMT
- Fri, 04 Oct 2024 07:00:06 GMT
Expires:
- '0'
Pragma:
- no-cache
Transfer-Encoding:
- chunked
Vary:
- Origin, Access-Control-Request-Method, Access-Control-Request-Headers
Via:
Expand All @@ -43,7 +43,7 @@ interactions:
X-Frame-Options:
- DENY
X-Varnish:
- 727090396 716210529
- '665780740'
X-XSS-Protection:
- 1; mode=block
status:
Expand Down
Loading

0 comments on commit 1450f32

Please sign in to comment.