Skip to content

Commit 8385535

Browse files
committed
test: Add depreciated models to be excluded from coverage
ref: #833
1 parent f8a00a3 commit 8385535

6 files changed

Lines changed: 38 additions & 288 deletions

File tree

app/access/serializers/centurionaudit_team.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

app/access/serializers/centurionaudit_teamusers.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

app/access/serializers/centurionmodelnote_team.py

Lines changed: 0 additions & 87 deletions
This file was deleted.

app/access/serializers/centurionmodelnote_teamusers.py

Lines changed: 0 additions & 87 deletions
This file was deleted.

app/conftest.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,10 @@ def organization_two(django_db_blocker):
576576

577577
with django_db_blocker.unblock():
578578

579-
item.delete()
579+
try:
580+
item.delete()
581+
except:
582+
pass
580583

581584

582585

@@ -597,7 +600,10 @@ def organization_three(django_db_blocker):
597600

598601
with django_db_blocker.unblock():
599602

600-
item.delete()
603+
try:
604+
item.delete()
605+
except:
606+
pass
601607

602608

603609

pyproject.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,36 @@ omit = [
1818
"*wsgi*",
1919
"*admin.py",
2020
"*urls.py",
21+
##############################################
22+
# Depreciated Code Scheduled to be removed
23+
##############################################
24+
#
25+
# Organization rename to Tenant
26+
#
27+
"app/access/models/organization.py",
28+
#
29+
# Old History Model
30+
#
31+
"app/core/models/model_history.py",
32+
"/models/*_history.py",
33+
#
34+
# Old Notes model
35+
#
36+
"app/core/models/notes.py",
37+
"/models/*_notes.py",
38+
#
39+
# Old Ticketing Model
40+
#
41+
"app/core/models/ticket/*",
42+
"app/core/signal/ticket_linked_item_delete.py",
43+
"app/core/serializers/ticket_depreciated.py",
44+
"app/core/viewsets/ticket_depreciated.py",
45+
# "app/core/serializers/ticket_related.py",
46+
# "app/core/serializers/ticket_linked_item.py",
47+
"app/core/viewsets/related_ticket.py",
48+
"app/core/viewsets/ticket_linked_item.py",
49+
"app/core/viewsets/ticket_comment_depreciated.py",
50+
2151
]
2252

2353

0 commit comments

Comments
 (0)