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

Put splinter core tests into an isolated directory #1293

Merged
merged 2 commits into from
Jun 12, 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
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ def test_call_method_on_first_element():


def test_raise_exception_on_indexerror():
"should raise ElementDoesNotExist exception on IndexError"
"""should raise ElementDoesNotExist exception on IndexError"""
with pytest.raises(ElementDoesNotExist):
ElementList([]).first


def test_raise_exception_on_indexerror_with_unicode_query():
"should raise ElementDoesNotExist exception on IndexError"
"""should raise ElementDoesNotExist exception on IndexError"""
with pytest.raises(ElementDoesNotExist):
ElementList([], query=".element[title=título]").first

Expand All @@ -85,7 +85,7 @@ def test_attribute_error_method_for_empty():


def test_attribute_error_content():
"should raise AttributeError with right content"
"""should raise AttributeError with right content"""
with pytest.raises(AttributeError) as e:
the_list = ElementList([Person(), Person()])
the_list.talk()
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
extras = zope.testbrowser, django, flask
deps = -rrequirements/test.txt
commands =
pytest --ignore-flaky -v {posargs} tests/test_browser.py tests/test_element_list.py tests/test_request_handler.py tests/test_xpath_concat.py
pytest --ignore-flaky -v {posargs} tests/tests_splinter

[testenv:tests_lxml_drivers]
extras = zope.testbrowser, django, flask
Expand Down
Loading