Skip to content

Commit

Permalink
Merge pull request #178 from hvlads/update-ckeditor-5-package
Browse files Browse the repository at this point in the history
add tests
  • Loading branch information
hvlads authored Jan 6, 2024
2 parents 7b479bd + 312ebca commit 8a24ee1
Show file tree
Hide file tree
Showing 5 changed files with 640 additions and 666 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ django_ckeditor_5/static/django_ckeditor_5/dist/*.map
django_ckeditor_5/static/django_ckeditor_5/dist
build.sh
lint.sh
venv
venv
.coverage
coverage.xml
13 changes: 13 additions & 0 deletions example/blog/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,21 @@

import pytest

from django_ckeditor_5.fields import CKEditor5Field
from django_ckeditor_5.forms import UploadFileForm


@pytest.fixture()
def file():
file_path = os.path.join(os.path.dirname(__file__), "fixtures", "files", "test.png")
return open(file_path, "rb")


@pytest.fixture()
def ckeditor5_field():
return CKEditor5Field()


@pytest.fixture()
def upload_file_form():
return UploadFileForm()
Loading

0 comments on commit 8a24ee1

Please sign in to comment.