mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Stub an API test for tours so I can refactor a little.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
from base import api
|
||||
|
||||
|
||||
class TourApiTestCase( api.ApiTestCase ):
|
||||
|
||||
def test_index(self):
|
||||
response = self._get( "tours" )
|
||||
self._assert_status_code_is( response, 200 )
|
||||
tours = response.json()
|
||||
tour_keys = map(lambda t: t["id"], tours)
|
||||
assert "core.history" in tour_keys
|
||||
|
||||
def test_show(self):
|
||||
response = self._get( "tours/core.history" )
|
||||
self._assert_status_code_is( response, 200 )
|
||||
tour = response.json()
|
||||
self._assert_has_keys(tour, "name", "description", "title_default", "steps")
|
||||
Reference in New Issue
Block a user