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

10 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.architecture_serializer import ArchitectureSerializer 

4from django_napse.api.bots.serializers.config_serializer import ConfigSerializer 

5from django_napse.core.models.bots.strategy import Strategy 

6 

7 

8class StrategySerializer(serializers.ModelSerializer): 

9 config = ConfigSerializer() 

10 architecture = ArchitectureSerializer() 

11 

12 class Meta: 

13 model = Strategy 

14 fields = "__all__"