Skip to content

Commit 022cd7c

Browse files
committed
Update test_util.py
1 parent b77ef2e commit 022cd7c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

qiita_db/test/test_util.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ 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,
1353+
self.assertEqual(bm, qdb.util.mem_model4,
13541354
msg=f"""Best memory model
13551355
doesn't match
13561356
Coefficients:{k} {a} {b}
@@ -1371,8 +1371,15 @@ def test_minimize_const(self):
13711371
self.df, k, a, b, bm, self.col_name, 'ElapsedRaw')
13721372
failures = failures_df.shape[0]
13731373

1374-
self.assertEqual(bm, qdb.util.time_model1, msg="""Best time model
1375-
doesn't match""")
1374+
self.assertEqual(bm, qdb.util.time_model1,
1375+
msg=f"""Best time model
1376+
doesn't match
1377+
Coefficients:{k} {a} {b}
1378+
{qdb.util.time_model1}, "qdb.util.time_model1"
1379+
{qdb.util.time_model2}, "qdb.util.time_model2"
1380+
{qdb.util.time_model3}, "qdb.util.time_model3"
1381+
{qdb.util.time_model4}, "qdb.util.time_model4"
1382+
""")
13761383
self.assertEqual(failures, 1, "Number of failures must be 1")
13771384

13781385
def test_MaxRSS_helper(self):

0 commit comments

Comments
 (0)