mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Adds a few more test cases for coverage and adds no coverage to some others
This commit is contained in:
parent
cbe567069f
commit
22e00a7080
8 changed files with 128 additions and 39 deletions
|
|
@ -536,8 +536,6 @@ class BulkDownloadSerializer(DocumentListSerializer):
|
|||
|
||||
|
||||
class StoragePathSerializer(MatchingModelSerializer):
|
||||
document_count = serializers.IntegerField(read_only=True)
|
||||
|
||||
class Meta:
|
||||
model = StoragePath
|
||||
fields = (
|
||||
|
|
@ -575,6 +573,10 @@ class StoragePathSerializer(MatchingModelSerializer):
|
|||
|
||||
return path
|
||||
|
||||
def create(self, validated_data):
|
||||
storage_path = StoragePath.objects.create(**validated_data)
|
||||
return storage_path
|
||||
|
||||
|
||||
class UiSettingsViewSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue