From 9a7b9de08d32567ec472b8596ae66b12dd85d317 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Sat, 13 Jun 2020 16:10:41 -0400 Subject: [PATCH] test_reports_accrual: Clean imports. --- tests/test_reports_accrual.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_reports_accrual.py b/tests/test_reports_accrual.py index a6c1c78..2ca92b4 100644 --- a/tests/test_reports_accrual.py +++ b/tests/test_reports_accrual.py @@ -19,7 +19,6 @@ import copy import datetime import io import itertools -import logging import operator import re @@ -41,7 +40,6 @@ from conservancy_beancount import cliutil from conservancy_beancount import data from conservancy_beancount import rtutil from conservancy_beancount.reports import accrual -from conservancy_beancount.reports import core _accruals_load = bc_loader.load_file(testutil.test_path('books/accruals.beancount')) ACCRUAL_TXNS = [ @@ -427,7 +425,7 @@ def run_outgoing(rt_id, postings, rt_client=None): if rt_client is None: rt_client = RTClient() rt_wrapper = rtutil.RT(rt_client) - if not isinstance(postings, core.RelatedPostings): + if not isinstance(postings, accrual.AccrualPostings): postings = accruals_by_meta(postings, rt_id, 'rt-id', wrap_type=accrual.AccrualPostings) output = io.StringIO() report = accrual.OutgoingReport(rt_wrapper, output)