Skip to content

Commit

Permalink
Fix serializer test for AT
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfersou committed Apr 3, 2020
1 parent 08eb51a commit ec09d5a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/plone/restapi/tests/test_atcontent_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,13 @@ def test_get_is_folderish_in_folder(self):
def test_nextprev_disabled(self):
folder = api.content.create(
container=self.portal,
type="ATFolder",
type="ATTestFolder",
title="Folder with items",
description="This is a folder with some documents",
)
doc = api.content.create(
container=folder,
type="ATDocument",
type="ATTestDocument",
title="Item 1",
description="One item alone in the folder"
)
Expand All @@ -215,14 +215,14 @@ def test_nextprev_disabled(self):
def test_nextprev_no_nextprev(self):
folder = api.content.create(
container=self.portal,
type="ATFolder",
type="ATTestFolder",
title="Folder with items",
description="This is a folder with some documents",
nextPreviousEnabled=True,
)
doc = api.content.create(
container=folder,
type="ATDocument",
type="ATTestDocument",
title="Item 1",
description="One item alone in the folder"
)
Expand All @@ -233,20 +233,20 @@ def test_nextprev_no_nextprev(self):
def test_nextprev_has_prev(self):
folder = api.content.create(
container=self.portal,
type="ATFolder",
type="ATTestFolder",
title="Folder with items",
description="This is a folder with some documents",
nextPreviousEnabled=True,
)
api.content.create(
container=folder,
type="ATDocument",
type="ATTestDocument",
title="Item 1",
description="Previous item"
)
doc = api.content.create(
container=folder,
type="ATDocument",
type="ATTestDocument",
title="Item 2",
description="Current item"
)
Expand All @@ -265,20 +265,20 @@ def test_nextprev_has_prev(self):
def test_nextprev_has_next(self):
folder = api.content.create(
container=self.portal,
type="ATFolder",
type="ATTestFolder",
title="Folder with items",
description="This is a folder with some documents",
nextPreviousEnabled=True,
)
doc = api.content.create(
container=folder,
type="ATDocument",
type="ATTestDocument",
title="Item 1",
description="Current item"
)
api.content.create(
container=folder,
type="ATDocument",
type="ATTestDocument",
title="Item 2",
description="Next item"
)
Expand All @@ -297,26 +297,26 @@ def test_nextprev_has_next(self):
def test_nextprev_has_nextprev(self):
folder = api.content.create(
container=self.portal,
type="ATFolder",
type="ATTestFolder",
title="Folder with items",
description="This is a folder with some documents",
nextPreviousEnabled=True,
)
api.content.create(
container=folder,
type="ATDocument",
type="ATTestDocument",
title="Item 1",
description="Previous item"
)
doc = api.content.create(
container=folder,
type="ATDocument",
type="ATTestDocument",
title="Item 2",
description="Current item"
)
api.content.create(
container=folder,
type="ATDocument",
type="ATTestDocument",
title="Item 3",
description="Next item"
)
Expand Down

0 comments on commit ec09d5a

Please sign in to comment.