Skip to content

Conversation

cyrillkuettel
Copy link
Contributor

TYPE: Feature
LINK: OGC-2596

Copy link

linear bot commented Sep 4, 2025

Copy link

codecov bot commented Sep 4, 2025

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
2391 2 2389 17
View the top 2 failed test(s) by shortest run time
tests/onegov/pas/test_views.py::test_views_manage
Stack Traces | 24.9s run time
client_with_es = <tests.shared.client.Client object at 0x7f1840d40650>

    @pytest.mark.flaky(reruns=5, only_rerun=None)
    def test_views_manage(client_with_es):
        client = client_with_es
        client.login_admin()
    
>       settings = client.get('/').click('PAS Einstellungen')
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.../onegov/pas/test_views.py:19: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/shared/client.py:263: in click
    return super().click(
........./app/lib/python3.11........./site-packages/webtest/response.py:152: in click
    found_html, found_desc, found_attrs = self._find_element(
........./app/lib/python3.11........./site-packages/webtest/response.py:197: in _find_element
    for element in self.html.find_all(tag):
                   ^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <302 Found text/plain location: http:.../localhost/pas body=b'302 Foun...y.  '/100>

    @property
    def html(self):
        """
        Returns the response as a `BeautifulSoup
        <https://www.crummy..../BeautifulSoup/bs3/documentation.html>`_
        object.
    
        Only works with HTML responses; other content-types raise
        AttributeError.
        """
        if 'html' not in self.content_type:
>           raise AttributeError(
                "Not an HTML response body (content-type: %s)"
                % self.content_type)
E           AttributeError: Not an HTML response body (content-type: text/plain)

........./app/lib/python3.11........./site-packages/webtest/response.py:399: AttributeError
tests/onegov/pas/test_views.py::test_copy_rate_set
Stack Traces | 39.2s run time
client = <tests.shared.client.Client object at 0x7fe4ebce7790>

    def test_copy_rate_set(client):
        client.login_admin()
    
>       settings = client.get('/').click('PAS Einstellungen')
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.../onegov/pas/test_views.py:412: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/shared/client.py:263: in click
    return super().click(
........./app/lib/python3.11........./site-packages/webtest/response.py:152: in click
    found_html, found_desc, found_attrs = self._find_element(
........./app/lib/python3.11........./site-packages/webtest/response.py:197: in _find_element
    for element in self.html.find_all(tag):
                   ^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <302 Found text/plain location: http:.../localhost/pas body=b'302 Foun...y.  '/100>

    @property
    def html(self):
        """
        Returns the response as a `BeautifulSoup
        <https://www.crummy..../BeautifulSoup/bs3/documentation.html>`_
        object.
    
        Only works with HTML responses; other content-types raise
        AttributeError.
        """
        if 'html' not in self.content_type:
>           raise AttributeError(
                "Not an HTML response body (content-type: %s)"
                % self.content_type)
E           AttributeError: Not an HTML response body (content-type: text/plain)

........./app/lib/python3.11........./site-packages/webtest/response.py:399: AttributeError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant