From 1dc54994faa5f145b2e4774d343bb71816ec64ef Mon Sep 17 00:00:00 2001 From: James Biggs Date: Mon, 23 Dec 2024 10:28:41 +0000 Subject: [PATCH] Fixed tests --- etna/records/tests/test_blocks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etna/records/tests/test_blocks.py b/etna/records/tests/test_blocks.py index 7078587ed..fa0268531 100644 --- a/etna/records/tests/test_blocks.py +++ b/etna/records/tests/test_blocks.py @@ -8,6 +8,7 @@ from wagtail.test.utils.form_data import nested_form_data, rich_text, streamfield import responses +from datetime import datetime, timezone from etna.articles.models import ArticleIndexPage, ArticlePage from etna.ciim.tests.factories import create_record, create_response @@ -21,6 +22,8 @@ BLOCK_TITLE_OVERRIDE = "This record is sooooo featured!" +DATE_1 = datetime(2000, 1, 1, tzinfo=timezone.utc) + class TestFeaturedRecordBlockIntegration(WagtailPageTestCase): def setUp(self): @@ -64,6 +67,7 @@ def test_add_record_links(self): "intro": rich_text("test"), "hero_image": test_image.id, "teaser_text": "test", + "published_date": DATE_1, "body": streamfield( [ (