Skip to content

Commit

Permalink
fixing broken networks test
Browse files Browse the repository at this point in the history
  • Loading branch information
John Waller committed Mar 6, 2024
1 parent 84f6a52 commit 6f4bc1e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/test-registry-networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def test_networks():
res = registry.networks()
assert dict == res.__class__
assert 2 == len(res)
assert 11 == len(res["data"])
assert 12 == len(res["data"])
assert ["data", "meta"] == sorted(res.keys())


Expand Down
25 changes: 20 additions & 5 deletions test/vcr_cassettes/test_networks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,22 @@ interactions:
uri: https://api.gbif.org/v1/network?limit=100
response:
body:
string: "{\"offset\":0,\"limit\":100,\"endOfRecords\":true,\"count\":11,\"results\":[{\"key\":\"2ee1bff7-0b34-4fa3-9433-feaa7c6ee08b\",\"title\":\"Biodiversidad
string: "{\"offset\":0,\"limit\":100,\"endOfRecords\":true,\"count\":12,\"results\":[{\"key\":\"0b00b924-016b-4954-96a7-2d9264b5d0ba\",\"title\":\"SwissBIF
(swissbif.ch) : Swiss Biodiversity Information Facility [Daten Biodiversit\xE4t
Schweiz \u2013 Donn\xE9es Biodiversit\xE9 Suisse]\",\"description\":\"The
Swiss Biodiversity Information Facility (SwissBIF) operates a network of partners
who contribute at responding to the Swiss Federal Council\u2019s commitment
of sharing standardized biodiversity data with the global initiative (Global
Biodiversity Information Facility). Under the auspices of the Swiss Federal
Office for the Environment, SwissBIF brings together active actors that strengthen
the international exchange of primary information on biodiversity, assists
the mobilization and reuse of relevant data that support conservation activities
and increase biodiversity-based knowledge. This collaborative network associates
national centers of biodiversity records, scientific collections, research
contributions, cantonal agencies for conservation, administrations of protected
areas, federal offices. Participants to the network work under common procedures,
an agreed ethical framework and coordinated data flow that ease providing
access to multidimensional and coherent data.\",\"language\":\"eng\",\"numConstituents\":0,\"email\":[],\"phone\":[],\"homepage\":[],\"address\":[],\"createdBy\":\"andrea\",\"modifiedBy\":\"andrea\",\"created\":\"2024-03-01T14:17:44.135+00:00\",\"modified\":\"2024-03-01T14:17:44.135+00:00\",\"contacts\":[],\"endpoints\":[],\"machineTags\":[],\"tags\":[],\"identifiers\":[],\"comments\":[]},{\"key\":\"2ee1bff7-0b34-4fa3-9433-feaa7c6ee08b\",\"title\":\"Biodiversidad
y Desarrollo Colombia\",\"description\":\"Biodiversidad y Desarrollo es una
plataforma para promover y amplificar la gesti\xF3n empresarial en biodiversidad.
Inicia en el a\xF1o 2014 en la Asociaci\xF3n Nacional de Empresarios de Colombia
Expand Down Expand Up @@ -80,7 +95,7 @@ interactions:
Life and Freshwater BON\",\"language\":\"eng\",\"numConstituents\":58,\"email\":[],\"phone\":[],\"homepage\":[\"http://www.freshwaterplatform.eu\"],\"address\":[],\"createdBy\":\"mgrosjean\",\"modifiedBy\":\"mgrosjean\",\"created\":\"2019-02-28T10:57:05.677+00:00\",\"modified\":\"2019-02-28T10:57:05.677+00:00\",\"contacts\":[],\"endpoints\":[],\"machineTags\":[{\"key\":7655747,\"namespace\":\"registry.gbif.org\",\"name\":\"visibleOnDatasetPage\",\"value\":\"true\",\"createdBy\":\"trobertson\",\"created\":\"2021-01-26T15:55:08.507+00:00\"}],\"tags\":[],\"identifiers\":[],\"comments\":[]},{\"key\":\"2b7c7b4f-4d4f-40d3-94de-c28b6fa054a6\",\"title\":\"Ocean
Biodiversity Information System (OBIS)\",\"description\":\"The Ocean Biodiversity
Information System (OBIS) is a global open-access data and information clearing-house
on marine biodiversity for science, conservation and sustainable development.\",\"language\":\"eng\",\"numConstituents\":2696,\"email\":[],\"phone\":[],\"homepage\":[\"https://obis.org\"],\"logoUrl\":\"https://obis.org/images/logo.png\",\"address\":[],\"createdBy\":\"ADMIN\",\"modifiedBy\":\"MattBlissett\",\"created\":\"2007-04-03T08:31:37.000+00:00\",\"modified\":\"2020-06-17T11:34:47.474+00:00\",\"contacts\":[],\"endpoints\":[],\"machineTags\":[{\"key\":7598741,\"namespace\":\"registry.gbif.org\",\"name\":\"visibleOnDatasetPage\",\"value\":\"true\",\"createdBy\":\"MattBlissett\",\"created\":\"2021-01-20T15:54:18.923+00:00\"}],\"tags\":[],\"identifiers\":[],\"comments\":[]}]}"
on marine biodiversity for science, conservation and sustainable development.\",\"language\":\"eng\",\"numConstituents\":2700,\"email\":[],\"phone\":[],\"homepage\":[\"https://obis.org\"],\"logoUrl\":\"https://obis.org/images/logo.png\",\"address\":[],\"createdBy\":\"ADMIN\",\"modifiedBy\":\"MattBlissett\",\"created\":\"2007-04-03T08:31:37.000+00:00\",\"modified\":\"2020-06-17T11:34:47.474+00:00\",\"contacts\":[],\"endpoints\":[],\"machineTags\":[{\"key\":7598741,\"namespace\":\"registry.gbif.org\",\"name\":\"visibleOnDatasetPage\",\"value\":\"true\",\"createdBy\":\"MattBlissett\",\"created\":\"2021-01-20T15:54:18.923+00:00\"}],\"tags\":[],\"identifiers\":[],\"comments\":[]}]}"
headers:
Accept-Ranges:
- bytes
Expand All @@ -91,11 +106,11 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '13673'
- '15166'
Content-Type:
- application/json
Date:
- Fri, 01 Mar 2024 08:32:31 GMT
- Wed, 06 Mar 2024 11:03:05 GMT
Expires:
- '0'
Pragma:
Expand All @@ -109,7 +124,7 @@ interactions:
X-Frame-Options:
- DENY
X-Varnish:
- '727450795'
- '753009896'
X-XSS-Protection:
- 1; mode=block
status:
Expand Down

0 comments on commit 6f4bc1e

Please sign in to comment.