Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #685

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/collective/zpretty
Expand All @@ -32,7 +32,7 @@ repos:
# """
##
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8

Expand Down
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"))