Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
danihodovic committed Aug 19, 2024
1 parent fb1b664 commit 546837e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 48 deletions.
3 changes: 0 additions & 3 deletions django_webhook/http.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import hashlib
import hmac
import json
from datetime import datetime
from json import JSONEncoder
from typing import cast

from django.utils import timezone
from requests import Request
Expand Down
1 change: 0 additions & 1 deletion django_webhook/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import uuid

from celery import states
from django.conf import settings
from django.core import validators
from django.core.serializers.json import DjangoJSONEncoder
from django.db import models
Expand Down
43 changes: 0 additions & 43 deletions setup.py

This file was deleted.

1 change: 0 additions & 1 deletion tests/test_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import pytest
from django.core.files.uploadedfile import SimpleUploadedFile
from django.core.serializers.json import DjangoJSONEncoder
from django.db.models import FileField
from django.db.models.fields.files import FieldFile

from django_webhook.models import WebhookEvent
Expand Down
4 changes: 4 additions & 0 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ def test_populate_topics_from_settings(settings):
"tests.Country/create",
"tests.Country/delete",
"tests.Country/update",
"tests.ModelWithFileField/create",
"tests.ModelWithFileField/delete",
"tests.ModelWithFileField/update",
"tests.User/create",
"tests.User/delete",
"tests.User/update",
]

settings.DJANGO_WEBHOOK["MODELS"] = ["tests.Country"]
populate_topics_from_settings()
assert list(
Expand Down

0 comments on commit 546837e

Please sign in to comment.