🏷️(backend) accept string as saved document
Saved documents has to be a string now. Before it has to be a json object.
This commit is contained in:
@@ -35,7 +35,7 @@ class DocumentFactory(factory.django.DjangoModelFactory):
|
||||
|
||||
title = factory.Sequence(lambda n: f"document{n}")
|
||||
is_public = factory.Faker("boolean")
|
||||
content = factory.LazyFunction(lambda: {"foo": fake.word()})
|
||||
content = factory.Sequence(lambda n: f"content{n}")
|
||||
|
||||
@factory.post_generation
|
||||
def users(self, create, extracted, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user