mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Adds a few more test cases for coverage and adds no coverage to some others
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user