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
« prev ^ index » next coverage.py v7.4.3, created at 2024-03-12 13:49 +0000
1from rest_framework import serializers
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
8class StrategySerializer(serializers.ModelSerializer):
9 config = ConfigSerializer()
10 architecture = ArchitectureSerializer()
12 class Meta:
13 model = Strategy
14 fields = "__all__"