Skip to content

Commit

Permalink
Hint scheme added to tasks resource (#455)
Browse files Browse the repository at this point in the history
* Hint scheme added to tasks resource

* Client tests amended
  • Loading branch information
Jason Munro authored Dec 11, 2021
1 parent 4862fab commit f437ddd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/mp_api/routes/tasks/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
TrajectoryQuery,
DeprecationQuery,
)
from mp_api.routes.tasks.hint_scheme import TasksHintScheme
from mp_api.routes.materials.query_operators import (
ElementsQuery,
FormulaQuery,
Expand All @@ -27,6 +28,7 @@ def task_resource(task_store):
TaskDoc, default_fields=["task_id", "formula_pretty", "last_updated"],
),
],
hint_scheme=TasksHintScheme(),
tags=["Tasks"],
)

Expand Down
5 changes: 2 additions & 3 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@
ignore_generic = [
"_user_settings",
"_general_store",
"dielectric",
"piezoelectric",
"magnetism",
"tasks",
"xas",
] # temp


Expand Down

0 comments on commit f437ddd

Please sign in to comment.