Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pkujawa committed Oct 15, 2024
1 parent c4def4c commit 4dc12ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hct_mis_api/apps/core/fixtures.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
import random
from typing import Any, List

Expand Down Expand Up @@ -147,7 +146,7 @@ def program(self) -> Any:
@classmethod
def _create(cls, target_class: Any, *args: Any, **kwargs: Any) -> FlexibleAttribute:
label = kwargs.pop("label", None)
kwargs["label"] = json.dumps({"English(EN)": label})
kwargs["label"] = {"English(EN)": label}
obj = super()._create(target_class, *args, **kwargs)
return obj

Expand Down

0 comments on commit 4dc12ac

Please sign in to comment.