Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Jun 24, 2024
1 parent a7f445a commit 4c57f6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions breathecode/registry/tests/urls/v1/tests_academy_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 4c57f6d

Please sign in to comment.