Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Mar 29, 2024
1 parent 2197048 commit 1f90661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion geotrek/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
__version__ = VERSION


def django_manage():
def django_manage(): # pragma: no cover
"""Use by geotrek command in debian based installations"""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "geotrek.settings")

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ data_file = "var/.coverage"
[tool.coverage.report]
ignore_errors = true
exclude_lines = [
'def django_manage():',
'pragma: no cover',
'if settings.DEBUG or settings.TEST:',
'from django.contrib.admin import ModelAdmin as TabbedTranslationAdmin, TabularInline as TranslationTabularInline',
'from django.contrib.admin import ModelAdmin as TabbedTranslationAdmin'
Expand Down

0 comments on commit 1f90661

Please sign in to comment.