Skip to content

Commit

Permalink
rem test
Browse files Browse the repository at this point in the history
  • Loading branch information
anishfyle committed Dec 18, 2024
1 parent b21a638 commit a024d86
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 79 deletions.
13 changes: 2 additions & 11 deletions apps/workspaces/apis/clone_settings/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from apps.workspaces.apis.import_settings.serializers import ImportSettingsSerializer
from apps.workspaces.apis.advanced_configurations.serializers import AdvancedConfigurationsSerializer
from apps.workspaces.apis.map_employees.serializers import MapEmployeesSerializer


class CloneSettingsSerializer(serializers.ModelSerializer):
Expand Down Expand Up @@ -42,9 +41,6 @@ def get_import_settings(self, instance):
def get_advanced_configurations(self, instance):
return AdvancedConfigurationsSerializer(instance).data

def get_employee_mappings(self, instance):
return MapEmployeesSerializer(instance).data

def update(self, instance, validated):
export_settings = validated.pop('export_settings')
import_settings = validated.pop('import_settings')
Expand All @@ -63,16 +59,11 @@ def update(self, instance, validated):
instance, data=advanced_configurations, partial=True
)

employee_mapping_serializer = MapEmployeesSerializer(
instance, data=employee_mapping, partial=True
)

if export_settings_serializer.is_valid(raise_exception=True) and employee_mapping_serializer.is_valid(raise_exception=True) \
and import_settings_serializer.is_valid(raise_exception=True) and \
if export_settings_serializer.is_valid(raise_exception=True) and \
import_settings_serializer.is_valid(raise_exception=True) and \
advanced_configurations_serializer.is_valid(raise_exception=True):

with transaction.atomic():
employee_mapping_serializer.save()
export_settings_serializer.save()
import_settings_serializer.save()
advanced_configurations_serializer.save()
Expand Down
Empty file.
6 changes: 0 additions & 6 deletions tests/test_workspaces/test_apis/test_map_employee/fixtures.py

This file was deleted.

This file was deleted.

38 changes: 0 additions & 38 deletions tests/test_workspaces/test_apis/test_map_employee/test_views.py

This file was deleted.

0 comments on commit a024d86

Please sign in to comment.