Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 5, 2024
1 parent 6b1cba2 commit 8e411de
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 42 deletions.
36 changes: 18 additions & 18 deletions plone/app/contenttypes/tests/test_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,24 +91,24 @@ def setUp(self):
def test_add_event(self):
self.browser.open(self.portal_url)
self.browser.getLink("Event").click()
self.browser.getControl(
name="form.widgets.IDublinCore.title"
).value = "My event"
self.browser.getControl(
name="form.widgets.IDublinCore.description"
).value = "This is my event."
self.browser.getControl(
name="form.widgets.IRichTextBehavior.text"
).value = "Lorem Ipsum"
self.browser.getControl(
name="form.widgets.IEventBasic.start"
).value = "2013-01-01"
self.browser.getControl(
name="form.widgets.IEventBasic.end"
).value = "2013-01-12"
self.browser.getControl(
name="form.widgets.IShortName.id"
).value = "my-special-event"
self.browser.getControl(name="form.widgets.IDublinCore.title").value = (
"My event"
)
self.browser.getControl(name="form.widgets.IDublinCore.description").value = (
"This is my event."
)
self.browser.getControl(name="form.widgets.IRichTextBehavior.text").value = (
"Lorem Ipsum"
)
self.browser.getControl(name="form.widgets.IEventBasic.start").value = (
"2013-01-01"
)
self.browser.getControl(name="form.widgets.IEventBasic.end").value = (
"2013-01-12"
)
self.browser.getControl(name="form.widgets.IShortName.id").value = (
"my-special-event"
)
self.browser.getControl("Save").click()

self.assertTrue(self.browser.url.endswith("my-special-event/view"))
Expand Down
18 changes: 9 additions & 9 deletions plone/app/contenttypes/tests/test_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,15 +379,15 @@ def test_add_link(self):
self.browser.open(self.portal_url)
self.browser.getLink("Link").click()
self.browser.getControl(name="form.widgets.IDublinCore.title").value = "My link"
self.browser.getControl(
name="form.widgets.IDublinCore.description"
).value = "This is my link."
self.browser.getControl(
name="form.widgets.IShortName.id"
).value = "my-special-link"
self.browser.getControl(
name="form.widgets.remoteUrl.external"
).value = "https://plone.org"
self.browser.getControl(name="form.widgets.IDublinCore.description").value = (
"This is my link."
)
self.browser.getControl(name="form.widgets.IShortName.id").value = (
"my-special-link"
)
self.browser.getControl(name="form.widgets.remoteUrl.external").value = (
"https://plone.org"
)
self.browser.getControl("Save").click()

self.assertTrue(self.browser.url.endswith("my-special-link/view"))
Expand Down
30 changes: 15 additions & 15 deletions plone/app/contenttypes/tests/test_news_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ def setUp(self):
def test_add_news_item(self):
self.browser.open(self.portal_url)
self.browser.getLink("News Item").click()
self.browser.getControl(
name="form.widgets.IDublinCore.title"
).value = "My news item"
self.browser.getControl(
name="form.widgets.IDublinCore.description"
).value = "This is my news item."
self.browser.getControl(name="form.widgets.IDublinCore.title").value = (
"My news item"
)
self.browser.getControl(name="form.widgets.IDublinCore.description").value = (
"This is my news item."
)
self.browser.getControl(name="form.widgets.IShortName.id").value = ""
self.browser.getControl(
name="form.widgets.IRichTextBehavior.text"
).value = "Lorem Ipsum"
self.browser.getControl(name="form.widgets.IRichTextBehavior.text").value = (
"Lorem Ipsum"
)
self.browser.getControl("Save").click()

self.assertTrue(self.browser.url.endswith("my-news-item/view"))
Expand All @@ -132,12 +132,12 @@ def test_add_news_item(self):
def test_add_news_item_with_shortname(self):
self.browser.open(self.portal_url)
self.browser.getLink("News Item").click()
self.browser.getControl(
name="form.widgets.IDublinCore.title"
).value = "My news item"
self.browser.getControl(
name="form.widgets.IShortName.id"
).value = "my-special-news"
self.browser.getControl(name="form.widgets.IDublinCore.title").value = (
"My news item"
)
self.browser.getControl(name="form.widgets.IShortName.id").value = (
"my-special-news"
)
self.browser.getControl("Save").click()

self.assertTrue(self.browser.url.endswith("my-special-news/view"))

0 comments on commit 8e411de

Please sign in to comment.