Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

test(diagnostics): 取证测试的 support 导入放到模块顶部

longmeidao717d735ad93a
diff --git a/tests/test_error_reporting.py b/tests/test_error_reporting.py
index 4c0355184..c8f8f2fab 100644
--- a/tests/test_error_reporting.py
+++ b/tests/test_error_reporting.py
@@ -12,6 +12,7 @@ from pathlib import Path
from unittest import mock
from peach import error_reporting, support_bundle, scraping_diagnostics
+from support.ledger import fresh_ledger
ROOT = Path(__file__).resolve().parents[1]
@@ -232,7 +233,6 @@ class ErrorReportingTests(unittest.TestCase):
from peach.routes_configuration import router
from peach.review_csv import write_rows
from peach.web_contract import WebContract
- from support.ledger import fresh_ledger
config, _evidence = self.scraping_config()
outside = self.root / 'outside.json'
outside.write_text(json.dumps({'title': 'private-outside-evidence'}), encoding='utf-8')