diff --git a/breathecode/registry/tests/urls/v1/tests_academy_asset.py b/breathecode/registry/tests/urls/v1/tests_academy_asset.py index d57ccd14a..1ef8625e0 100644 --- a/breathecode/registry/tests/urls/v1/tests_academy_asset.py +++ b/breathecode/registry/tests/urls/v1/tests_academy_asset.py @@ -128,6 +128,7 @@ def post_serializer(academy, category, data={}): 'with_video': False, 'superseded_by': None, 'enable_table_of_content': True, + 'updated_at': UTC_NOW.isoformat().replace('+00:00', 'Z'), **data, } @@ -243,6 +244,7 @@ def test__post__without_category(bc: Breathecode, client: APIClient): @patch('breathecode.registry.tasks.async_pull_from_github.delay', MagicMock()) +@patch('django.utils.timezone.now', MagicMock(return_value=UTC_NOW)) def test__post__with__all__mandatory__properties(bc: Breathecode, client: APIClient): """Test /Asset creation with all mandatory properties""" model = bc.database.create(