We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d399a4f commit 4bf5ba1Copy full SHA for 4bf5ba1
tests/conftest.py
@@ -332,6 +332,11 @@ def test_revenue_account_obj() -> Account:
332
(acct for acct in _cached_test_accounts if acct.name == 'Test Revenue'),
333
None,
334
)
335
+ if account is None:
336
+ account = next(
337
+ (acct for acct in _cached_test_accounts if 'test revenue' in acct.name.lower()),
338
+ None,
339
+ )
340
if account is None:
341
raise RuntimeError('Test Revenue account not found in cached test accounts.')
342
return account
0 commit comments