Skip to content

Commit

Permalink
Put splinter core tests into an isolated directory (#1293)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler authored Jun 12, 2024
1 parent c514c4a commit 6009e58
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
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.
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

0 comments on commit 6009e58

Please sign in to comment.