feat: move report artifacts to OSS storage
This commit is contained in:
@@ -6,7 +6,7 @@ from pathlib import Path
|
||||
|
||||
from company_reports.contracts import COMPANY_NAMES, REPORT_HEADERS, WarningCode
|
||||
from company_reports.core import build_all_company_reports
|
||||
from company_reports.publishing import ArtifactToolBuilder
|
||||
from company_reports.publishing import OpenpyxlWorkbookBuilder
|
||||
from tests.company_reports_acceptance_fixture import (
|
||||
AS_OF_DATE,
|
||||
REPORT_MONTH,
|
||||
@@ -15,10 +15,6 @@ from tests.company_reports_acceptance_fixture import (
|
||||
)
|
||||
|
||||
|
||||
PROJECT_ROOT = Path(__file__).resolve().parents[1]
|
||||
BUILDER_SCRIPT = PROJECT_ROOT / "company_reports" / "xlsx" / "build_workbook.mjs"
|
||||
|
||||
|
||||
def acceptance_reports():
|
||||
return build_all_company_reports(
|
||||
REPORT_YEAR,
|
||||
@@ -88,10 +84,7 @@ class CompanyReportAcceptanceCoreTests(unittest.TestCase):
|
||||
|
||||
class CompanyReportAcceptanceWorkbookTests(unittest.TestCase):
|
||||
def test_real_builder_exports_and_reopens_all_five_workbooks(self):
|
||||
builder = ArtifactToolBuilder(
|
||||
BUILDER_SCRIPT,
|
||||
timeout_seconds=180,
|
||||
)
|
||||
builder = OpenpyxlWorkbookBuilder()
|
||||
with tempfile.TemporaryDirectory(prefix="company-report-acceptance-") as temp_dir:
|
||||
root = Path(temp_dir)
|
||||
for report in acceptance_reports():
|
||||
|
||||
Reference in New Issue
Block a user