From 3149f3bc8f418840de10eaaa1d37ed34965206f7 Mon Sep 17 00:00:00 2001 From: Tibor Leupold Date: Sun, 10 Dec 2023 20:32:25 -0800 Subject: [PATCH] Remove reliance on os_helper module --- laces/tests/test_components.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laces/tests/test_components.py b/laces/tests/test_components.py index 0e4f69d..57d0221 100644 --- a/laces/tests/test_components.py +++ b/laces/tests/test_components.py @@ -2,7 +2,6 @@ import random from pathlib import Path -from test.support import os_helper from django.conf import settings from django.forms.widgets import Media @@ -77,7 +76,8 @@ def setUp(self): self.example_template = ( Path(settings.PROJECT_DIR) / "templates" / self.example_template_name ) - os_helper.create_empty_file(self.example_template) + # Write content to the template file to ensure it exists. + self.set_example_template_content("") def set_example_template_content(self, content: str): with open(self.example_template, "w") as f: