"""Unit tests for the TikTok OpenEscrow config.""" from datetime import datetime from feed_ingestion.flows.tiktok_openescrow import config def test_feed_identifiers(): """The feed name, secrets path and staging_raw table are as expected.""" assert config.feed_name == 'tiktok_openescrow' assert config.secrets_path == 'swf-tiktok-openescrow' assert config.staging_raw_table == 'STAGING_RAW_TIKTOK_OPENESCROW' def test_filename_template_formats_year_month(): """The filename template fills in YYYYMM and the format suffix.""" name = config.filename.format(date=datetime(2026, 1, 1), format='zip') assert name == 'TikTok_OpenEscrow_report_202601.txt.zip'