Skip to content

Commit

Permalink
Tests to make sure Beacon API handlers are present
Browse files Browse the repository at this point in the history
still missing tests to verify they actually work
Reading the beacon specs and re-writing new tests necessary. But it seems that Beacon has other ways of checking.
  • Loading branch information
zcqian committed Oct 5, 2021
1 parent 3f7fc62 commit 38e73e4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/tests/app/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,17 @@ def test_gnomad_genome(self):


class TestBeaconEndpoints(BiothingsWebAppTest):
pass
TEST_DATA_DIR_NAME = 'mv_app_test'

# FIXME: document the endpoint and implement tests
# for /beacon/*, handlers in web.beacon.handlers
def test_get(self):
r = self.request('/beacon/query', method='get')
assert r

def test_post(self):
r = self.request('/beacon/query', method='post')
assert r


class TestGenomicIntervalQuery(BiothingsWebAppTest):
Expand Down

0 comments on commit 38e73e4

Please sign in to comment.