Skip to content

Commit f9d678d

Browse files
committed
Debug Memory Model
1 parent 470d246 commit f9d678d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

qiita_db/test/test_util.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1350,8 +1350,15 @@ def test_minimize_const(self):
13501350
failures_df = qdb.util._resource_allocation_failures(
13511351
self.df, k, a, b, bm, self.col_name, 'MaxRSSRaw')
13521352
failures = failures_df.shape[0]
1353-
self.assertEqual(bm, qdb.util.mem_model3, msg="""Best memory model
1354-
doesn't match""")
1353+
self.assertEqual(bm, qdb.util.mem_model3,
1354+
msg=f"""Best memory model
1355+
doesn't match
1356+
Coefficients:{k} {a} {b}
1357+
{qdb.util.mem_model1}, "qdb.util.mem_model1"
1358+
{qdb.util.mem_model2}, "qdb.util.mem_model2"
1359+
{qdb.util.mem_model3}, "qdb.util.mem_model3"
1360+
{qdb.util.mem_model4}, "qdb.util.mem_model4"
1361+
""")
13551362
self.assertEqual(failures, 0, "Number of failures must be 0")
13561363

13571364
# check that the algorithm chooses correct model for ElapsedRaw and

0 commit comments

Comments
 (0)