Skip to content
Snippets Groups Projects

Rename Stocks data registration to LabID data registration.

Merged William Murphy requested to merge #15-rename-stocks-data-registration into master
3 files
+ 8
9
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 4
5
@@ -105,11 +105,11 @@ def test_register_data(auth_test_client, collection_id, comment, name):
(1, None, 'test_name'),
(1, 'test comment', 'test_name'),
))
def test_register_stocks_data(auth_test_client, collection_id, comment, name):
def test_register_labid_data(auth_test_client, collection_id, comment, name):
"""
Test the data registration endpoint.
Test the labid data registration endpoint.
"""
resp = auth_test_client.register_stocks_data(
resp = auth_test_client.register_labid_data(
path='/g/test/stocks/bar',
collection_id=collection_id,
comment=comment,
@@ -263,12 +263,11 @@ def test_pullover(auth_test_client, collection_id, comment, name):
assert isinstance(resp, models.Data)
assert resp is not None
@pytest.mark.skip(reason="Test not possible as volume endpoint hidden from OpenAPI spec")
def test_list_volumes(auth_test_client):
"""
Test the volume list endpoint.
"""
volumes = auth_test_client.list_data()
volumes = auth_test_client.list_volumes()
assert len(volumes) > 0
assert isinstance(volumes, list)
assert all((isinstance(v, models.Volume) for v in volumes))
\ No newline at end of file
Loading