Coverage for django_napse/api/bots/serializers/plugin_serializer.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.4.3, created at 2024-03-12 13:49 +0000

1from rest_framework import serializers 

2 

3from django_napse.api.bots.serializers.strategy_serializer import StrategySerializer 

4from django_napse.core.models.bots.plugin import Plugin 

5 

6 

7class PluginSerializer(serializers.ModelSerializer): 

8 strategy = StrategySerializer() 

9 

10 class Meta: 

11 model = Plugin 

12 fields = "__all__" 

13 read_only_fields = [ 

14 "id", 

15 ]