Skip to content

Commit

Permalink
Testing/coverage
Browse files Browse the repository at this point in the history
- Unfortunately coverage doesn't know about TYPE_CHECKING
- We don't care about delete's signature, so just use kwargs for
  forwards compatibility
- Upgrade coverage to latest
  • Loading branch information
msopacua committed Oct 20, 2023
1 parent 5296753 commit 6df60ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autoslug/tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class AbstractModelWithCustomManager(Model):
class Meta:
abstract = True

def delete(self, using=None):
def delete(self, **kwargs):
self.is_deleted = True
self.save()

Expand Down
2 changes: 1 addition & 1 deletion autoslug/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from django.utils.timezone import localtime, is_aware


if TYPE_CHECKING:
if TYPE_CHECKING: # pragma: no cover
from collections.abc import Callable, Generator, Sequence
from django.db.models import SlugField, Model, Manager
from django.db.models.base import Options
Expand Down
2 changes: 1 addition & 1 deletion requirements/devel.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
coverage==5.0.3
coverage==7.3.2

0 comments on commit 6df60ee

Please sign in to comment.