File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ import os
2+
3+ import pytest
4+ from elinkapi import Elink
5+
6+
7+ @pytest .fixture
8+ def elink_review_client ():
9+ review_endpoint = os .getenv ("ELINK_REVIEW_ENDPOINT" )
10+ elink_review_api_key = os .getenv ("ELINK_REVIEW_API_TOKEN" )
11+ return Elink (token = elink_review_api_key , target = review_endpoint )
Original file line number Diff line number Diff line change 1+ from elinkapi .record import RecordResponse
2+
3+ # TODO: Write tests that verify our usage of Elink is correct,
4+ # and make sure any upstream breaking changes get caught
5+ # here when version upgrades happen
6+
7+ # 1. general query logic + params that we use regularly?
8+ # 2. make sure we can submit a correctly templated dataset submission
9+ # 3. make sure record updates work
10+ # 4. deleting records?
11+ # 5+. test any other surfaces of the Elink api that we interact with
12+
13+
14+ def test_elink_query (elink_review_client ):
15+ # placeholder, just to verify gh actions until full test suite is done
16+ assert isinstance (next (elink_review_client .query_records ()), RecordResponse )
You can’t perform that action at this time.
0 commit comments