🔥(backend) remove code_editor field

code_editor field was removed from the backend.
This filed was used to store the code editor to
generate templates.
This commit is contained in:
Anthony LC
2024-05-02 14:13:15 +02:00
committed by Anthony LC
parent c7a5b5f3fb
commit 5fbb5106a9
6 changed files with 1 additions and 24 deletions

View File

@@ -28,7 +28,6 @@ def test_api_templates_retrieve_anonymous_public():
},
"accesses": [],
"title": template.title,
"code_editor": {},
"is_public": True,
"code": template.code,
"css": template.css,
@@ -73,7 +72,6 @@ def test_api_templates_retrieve_authenticated_unrelated_public():
},
"accesses": [],
"title": template.title,
"code_editor": {},
"is_public": True,
"code": template.code,
"css": template.css,
@@ -141,7 +139,6 @@ def test_api_templates_retrieve_authenticated_related_direct():
"id": str(template.id),
"title": template.title,
"abilities": template.get_abilities(user),
"code_editor": {},
"is_public": template.is_public,
"code": template.code,
"css": template.css,
@@ -258,7 +255,6 @@ def test_api_templates_retrieve_authenticated_related_team_members(
"id": str(template.id),
"title": template.title,
"abilities": template.get_abilities(user),
"code_editor": {},
"is_public": False,
"code": template.code,
"css": template.css,
@@ -357,7 +353,6 @@ def test_api_templates_retrieve_authenticated_related_team_administrators(
"id": str(template.id),
"title": template.title,
"abilities": template.get_abilities(user),
"code_editor": {},
"is_public": False,
"code": template.code,
"css": template.css,
@@ -460,7 +455,6 @@ def test_api_templates_retrieve_authenticated_related_team_owners(
"id": str(template.id),
"title": template.title,
"abilities": template.get_abilities(user),
"code_editor": {},
"is_public": False,
"code": template.code,
"css": template.css,

View File

@@ -167,9 +167,3 @@ def test_models_templates_get_abilities_preset_role(django_assert_num_queries):
"partial_update": False,
"generate_document": True,
}
def test_models_templates_get_code_editor():
"""Check code_editor in the template model"""
template = factories.TemplateFactory(code_editor={"test": "ok"})
assert template.code_editor == {"test": "ok"}