Skip to content

Commit

Permalink
more fixes in test_submissions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
j-wags committed Aug 24, 2023
1 parent 023fede commit 1c1ab04
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions openff/qcsubmit/tests/test_submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def await_services(client, max_iter=10):
*client.query_torsiondrives()]
finished = 0
for rec in recs:
print(rec.status)
#print(rec.status)
if rec.status == RecordStatusEnum.error:
print("stderr", rec._get_output(OutputTypeEnum.stderr))
print("stdout", rec._get_output(OutputTypeEnum.stdout))
Expand All @@ -82,7 +82,7 @@ def await_services(client, max_iter=10):
raise RuntimeError(f"calculation failed: {rec}")
if rec.status not in [RecordStatusEnum.running, RecordStatusEnum.waiting]:
finished += 1
print("exiting await_results")
print("exiting await_services")
# break
# return True
if finished == len(recs):
Expand Down Expand Up @@ -458,7 +458,7 @@ def test_adding_compute(fulltest_client, dataset_data):
# now submit again
dataset.submit(client=client)
# make sure that the compute has finished
await_services(fulltest_client)
await_services(fulltest_client, max_iter=30)

# now lets make a dataset with new compute and submit it
# transfer the metadata to compare the elements
Expand All @@ -475,7 +475,7 @@ def test_adding_compute(fulltest_client, dataset_data):
assert compute_dataset.dataset == {}
compute_dataset.submit(client=client)
# make sure that the compute has finished
await_services(fulltest_client)
await_services(fulltest_client, max_iter=30)

# make sure of the results are complete
ds = client.get_dataset(dataset.type, dataset.dataset_name)
Expand Down Expand Up @@ -827,6 +827,8 @@ def test_optimization_submissions_with_pcm(fulltest_client):
assert record.error is None
assert len(record.trajectory) > 1
result = record.trajectory

## Real Problems (TM) begin here:
assert "SCF DIPOLE" in result.properties.keys()
assert "SCF QUADRUPOLE" in result.properties.keys()
# make sure the PCM result was captured
Expand Down

0 comments on commit 1c1ab04

Please sign in to comment.