Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
9661634b
Commit
9661634b
authored
Jun 08, 2020
by
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
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
9661634b
...
...
@@ -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
:
...
...
nomad/app/optimade/endpoints.py
View file @
9661634b
...
...
@@ -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
...
...
tests/app/test_app.py
View file @
9661634b
...
...
@@ -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
tests/app/test_optimade.py
View file @
9661634b
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment