Skip to content

Commit

Permalink
Adressing duplicated function on unitesting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroCoronadoN committed Oct 24, 2024
1 parent e7d0f38 commit 2928ff7
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/apps/applets/tests/test_applet_activity_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,25 +268,6 @@ async def test_create_applet__activity_with_conditional_logic(
by_alias=True
)

async def test_create_applet__activity_with_paragraph_and_phrase_builder(
self,
client: TestClient,
tom: User,
applet_minimal_data: AppletCreate,
activity_create_with_conditional_logic: ActivityCreate,
):
client.login(tom)
data = applet_minimal_data.copy(deep=True)
data.activities = [activity_create_with_conditional_logic]
response = await client.post(self.applet_create_url.format(owner_id=tom.id), data=data)
assert response.status_code == http.HTTPStatus.CREATED
result = response.json()["result"]
item_create_with_logic = activity_create_with_conditional_logic.items[1]
assert item_create_with_logic.conditional_logic is not None
assert result["activities"][0]["items"][1]["conditionalLogic"] == item_create_with_logic.conditional_logic.dict(
by_alias=True
)

@pytest.mark.parametrize(
"item_fixture_name",
(
Expand Down

0 comments on commit 2928ff7

Please sign in to comment.