Skip to content

Commit

Permalink
Merge pull request #276 from openforcefield/bugfix/settings_json_deco…
Browse files Browse the repository at this point in the history
…ding

Fix for create_network in interface API, properly deserializing AlchemicalNetwork
  • Loading branch information
dotsdl authored Jun 5, 2024
2 parents e6a64e4 + 6d5fbac commit 4f2a226
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,17 @@ def test_claim_taskhub_task(

taskhub_sks = compute_client.query_taskhubs([scope_test])

remaining_tasks = n4js_preloaded.get_taskhub_unclaimed_tasks(taskhub_sks[0])
assert len(remaining_tasks) == 3

# claim a single task; should get highest priority task
task_sks = compute_client.claim_taskhub_tasks(
taskhub_sks[0], compute_service_id=compute_service_id
)

remaining_tasks = n4js_preloaded.get_taskhub_unclaimed_tasks(taskhub_sks[0])
assert len(remaining_tasks) == 2

all_tasks = n4js_preloaded.get_taskhub_tasks(taskhub_sks[0], return_gufe=True)

assert len(task_sks) == 1
Expand Down
4 changes: 3 additions & 1 deletion alchemiscale/tests/integration/compute/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ def n4js_preloaded(
n4js: Neo4jStore = n4js_fresh

# Set up tasks from select set of transformations
# we need to use second_network_an2 because its edges
# are a subset of network_tyk2's edges
transformations = sorted(
filter(lambda x: type(x) is not NonTransformation, network_tyk2.edges)
filter(lambda x: type(x) is not NonTransformation, second_network_an2.edges)
)[0:3]

# set starting contents for many of the tests in this module
Expand Down

0 comments on commit 4f2a226

Please sign in to comment.