From 90a0e5bf0036946fa60f18196bdfabda513ea70f Mon Sep 17 00:00:00 2001 From: jefer94 Date: Thu, 4 Jul 2024 22:41:02 -0500 Subject: [PATCH] fix tests --- .../tests/management/commands/tests_set_permissions.py | 4 ++-- breathecode/registry/tests/urls/v1/tests_academy_asset.py | 2 ++ breathecode/registry/tests/urls/v1/tests_asset.py | 2 ++ .../registry/tests/urls/v2/tests_academy_asset_slug.py | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/breathecode/authenticate/tests/management/commands/tests_set_permissions.py b/breathecode/authenticate/tests/management/commands/tests_set_permissions.py index a37294ebe..8c39c0aeb 100644 --- a/breathecode/authenticate/tests/management/commands/tests_set_permissions.py +++ b/breathecode/authenticate/tests/management/commands/tests_set_permissions.py @@ -63,8 +63,8 @@ def setUp(self): # the behavior of permissions is not exact, this changes every time you add a model self.latest_content_type_id = content_type.id self.latest_permission_id = permission.id - self.job_content_type_id = self.latest_content_type_id - 61 - self.can_delete_job_permission_id = self.latest_permission_id - 245 + self.job_content_type_id = self.latest_content_type_id - 62 + self.can_delete_job_permission_id = self.latest_permission_id - 249 """ 🔽🔽🔽 format of PERMISSIONS diff --git a/breathecode/registry/tests/urls/v1/tests_academy_asset.py b/breathecode/registry/tests/urls/v1/tests_academy_asset.py index 048f92900..d54b39375 100644 --- a/breathecode/registry/tests/urls/v1/tests_academy_asset.py +++ b/breathecode/registry/tests/urls/v1/tests_academy_asset.py @@ -136,6 +136,8 @@ def put_serializer(academy, category, asset, data={}): "assessment": asset.assessment, "asset_type": asset.asset_type, "author": asset.author, + "enable_table_of_content": asset.enable_table_of_content, + "interactive": asset.interactive, "authors_username": None, "category": {"id": category.id, "slug": category.slug, "title": category.title}, "cleaning_status": asset.cleaning_status, diff --git a/breathecode/registry/tests/urls/v1/tests_asset.py b/breathecode/registry/tests/urls/v1/tests_asset.py index 9a65de069..064fc899f 100644 --- a/breathecode/registry/tests/urls/v1/tests_asset.py +++ b/breathecode/registry/tests/urls/v1/tests_asset.py @@ -23,6 +23,8 @@ def get_serializer(asset, data={}): "slug": asset.slug, "title": asset.title, "asset_type": asset.asset_type, + "enable_table_of_content": asset.enable_table_of_content, + "interactive": asset.interactive, "category": { "id": asset.category.id, "slug": asset.category.slug, diff --git a/breathecode/registry/tests/urls/v2/tests_academy_asset_slug.py b/breathecode/registry/tests/urls/v2/tests_academy_asset_slug.py index 51b5945d8..59ebc2e4e 100644 --- a/breathecode/registry/tests/urls/v2/tests_academy_asset_slug.py +++ b/breathecode/registry/tests/urls/v2/tests_academy_asset_slug.py @@ -23,6 +23,8 @@ def get_serializer(bc: Breathecode, asset, asset_category=None, data={}): return { "assessment": asset.assessment, "asset_type": asset.asset_type, + "enable_table_of_content": asset.enable_table_of_content, + "interactive": asset.interactive, "author": asset.author, "authors_username": None, "category": get_asset_category(asset_category) if asset_category else None,