Skip to content

Commit

Permalink
Remove reliance on os_helper module
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrlpld committed Dec 11, 2023
1 parent d1c14fa commit 3149f3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions laces/tests/test_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3149f3b

Please sign in to comment.