diff --git a/tests/test_reports_accrual.py b/tests/test_reports_accrual.py index ecfa8ece0e576c08bc5f8e676ed1406d83d3e0f3..2f48915603b76ecf371454f1787196a25c1e6eb6 100644 --- a/tests/test_reports_accrual.py +++ b/tests/test_reports_accrual.py @@ -242,30 +242,6 @@ def test_filter_search(accrual_postings, search_terms, expect_count, check_func) for post in actual: assert check_func(post) -@pytest.mark.parametrize('arg,expected', [ - ('aging', accrual.AgingReport), - ('balance', accrual.BalanceReport), - ('outgoing', accrual.OutgoingReport), - ('age', accrual.AgingReport), - ('bal', accrual.BalanceReport), - ('out', accrual.OutgoingReport), - ('outgoings', accrual.OutgoingReport), -]) -def test_report_type_by_name(arg, expected): - assert accrual.ReportType.by_name(arg.lower()).value is expected - assert accrual.ReportType.by_name(arg.title()).value is expected - assert accrual.ReportType.by_name(arg.upper()).value is expected - -@pytest.mark.parametrize('arg', [ - 'unknown', - 'blance', - 'outgong', -]) -def test_report_type_by_unknown_name(arg): - # Raising ValueError helps argparse generate good messages. - with pytest.raises(ValueError): - accrual.ReportType.by_name(arg) - @pytest.mark.parametrize('acct_name,invoice,day', testutil.combine_values( INVOICE_ACCOUNTS, ['FIXME', '', None, *testutil.NON_STRING_METADATA_VALUES],