Ignore admin code in codecov
@@ -17,13 +17,13 @@ class HotelRoomReservationAdmin(admin.ModelAdmin):
list_display = ("order_code", "order_status", "room", "user", "checkin", "checkout")
list_filter = ("order_code", "room__conference", "room")
- def order_status(self, obj):
+ def order_status(self, obj): # pragma: no cover
if obj.order_code not in self._reservation_status:
return _("Unknown")
return order_status_to_text(self._reservation_status[obj.order_code])
- def get_queryset(self, request):
+ def get_queryset(self, request): # pragma: no cover
queryset = super().get_queryset(request)
codes = [reservation.order_code for reservation in queryset]
