mirror of https://github.com/zulip/zulip.git
test_narrow: Use a better assert for easier debugging.
This should provide much better error messages.
This commit is contained in:
parent
c8f034e9a0
commit
faa3c275de
|
@ -327,7 +327,7 @@ class NarrowBuilderTest(ZulipTestCase):
|
|||
if params is not None:
|
||||
actual_params = query.compile().params
|
||||
self.assertEqual(actual_params, params)
|
||||
self.assertTrue(where_clause in str(query))
|
||||
self.assertIn(where_clause, str(query))
|
||||
|
||||
def _build_query(self, term: Dict[str, Any]) -> Query:
|
||||
return self.builder.add_term(self.raw_query, term)
|
||||
|
|
Loading…
Reference in New Issue