Commit 9661634b authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed library install tests. Added v0 prefix to optimade.

parent c6418186
Pipeline #76280 failed with stages
in 19 minutes and 25 seconds
......@@ -107,9 +107,9 @@ install_tests:
- pip install numpy
- python setup.py compile
- python setup.py sdist
- pip install dist/nomad-lab.tar.gz
- pip install dist/nomad-lab-*.tar.gz
- python -c "import nomad.datamodel, nomad.datamodel.metainfo, nomad.client"
- pip install dist/nomad-lab.tar.gz[parsing]
- pip install dist/nomad-lab-*.tar.gz[parsing]
- python -m nomad.cli parse tests/data/parsers/vasp/vasp.xml
deploy:
......
......@@ -29,7 +29,7 @@ from .models import json_api_single_response_model, entry_listing_endpoint_parse
from .filterparser import parse_filter, FilterException
ns = api.namespace('', description='The (only) API namespace with all OPTiMaDe endpoints.')
ns = api.namespace('v0', description='The version v0 API namespace with all OPTiMaDe endpoints.')
# TODO replace with decorator that filters response_fields
......
......@@ -91,5 +91,5 @@ def test_docs(client):
def test_dist(client):
rv = client.get('/dist/nomad-%s.tar.gz' % config.version)
rv = client.get('/dist/nomad-lab.tar.gz')
assert rv.status_code == 200
......@@ -26,7 +26,7 @@ from tests.conftest import clear_elastic, clear_raw_files
@pytest.fixture(scope='session')
def api(session_client):
return BlueprintClient(session_client, '/optimade')
return BlueprintClient(session_client, '/optimade/v0')
def test_get_entry(published: Upload):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment