Skip to content

Commit

Permalink
Merge pull request #220 from hvlads/add-new-plugins
Browse files Browse the repository at this point in the history
delete test_upload_file_to_google_cloud
  • Loading branch information
hvlads authored May 4, 2024
2 parents 4d20e06 + 84379c4 commit 24cbaed
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions example/blog/tests/test_upload_file.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from django.test import override_settings
from django.urls import reverse


Expand All @@ -10,17 +9,3 @@ def test_upload_file(admin_client, file):
)
assert response.status_code == 200
assert "url" in response.json()


@override_settings(
CKEDITOR_5_FILE_STORAGE="storages.backends.gcloud.GoogleCloudStorage",
GS_BUCKET_NAME="test",
)
def test_upload_file_to_google_cloud(admin_client, file, settings):
with file as upload:
response = admin_client.post(
reverse("ck_editor_5_upload_file"),
{"upload": upload},
)
assert response.status_code == 200
assert "url" in response.json()

0 comments on commit 24cbaed

Please sign in to comment.