Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fullbat committed Mar 14, 2024
1 parent 20141e0 commit 8ca3d48
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/test_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,22 @@ def run_commit_VolumeFractions():
mit.save_results()


# def check_config(result_config, ref_config):


def check_results(pickle_result, ref_pickle):
with open(pickle_result, 'rb') as f:
data = pickle.load(f)
with open(ref_pickle, 'rb') as f:
ref_data = pickle.load(f)
assert data == ref_data

result_optimization = data[0]["optimization"]
ref_optimization = ref_data[0]["optimization"]
assert result_optimization["iterations"] == ref_optimization["iterations"]






def run_tests():
Expand Down

0 comments on commit 8ca3d48

Please sign in to comment.