Skip to content
Snippets Groups Projects
Commit 456357d8 authored by Manon Blanco's avatar Manon Blanco Committed by Yoann Schneider
Browse files

Fix lint

parent f2055b9d
No related branches found
No related tags found
1 merge request!378Add an API helper to update an element
Pipeline #127365 passed
...@@ -1215,13 +1215,19 @@ def test_update_element_wrong_element(mock_elements_worker): ...@@ -1215,13 +1215,19 @@ def test_update_element_wrong_element(mock_elements_worker):
mock_elements_worker.update_element( mock_elements_worker.update_element(
element=None, element=None,
) )
assert str(e.value) == "element shouldn't be null and should be an Element or CachedElement" assert (
str(e.value)
== "element shouldn't be null and should be an Element or CachedElement"
)
with pytest.raises(AssertionError) as e: with pytest.raises(AssertionError) as e:
mock_elements_worker.update_element( mock_elements_worker.update_element(
element="not element type", element="not element type",
) )
assert str(e.value) == "element shouldn't be null and should be an Element or CachedElement" assert (
str(e.value)
== "element shouldn't be null and should be an Element or CachedElement"
)
def test_update_element_wrong_type(mock_elements_worker): def test_update_element_wrong_type(mock_elements_worker):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment