Skip to content

Conversation

@brosner
Copy link
Owner

@brosner brosner commented Jan 20, 2025

No description provided.

Copy link
Owner Author

brosner commented Jan 20, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codecov
Copy link

codecov bot commented Jan 20, 2025

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
26 2 24 0
View the top 2 failed test(s) by shortest run time
tests/test_authz.py::test_token_endpoint
Stack Traces | 0.084s run time
client = <FlaskClient <Flask 'teufa.app'>>

    def test_token_endpoint(client):
        # Simulate a POST request to the token endpoint
        response = client.post(
            ".../authz/oauth/token",
            data={
                "grant_type": "authorization_code",
                "code": "test_code",
                "redirect_uri": "http:.../localhost/callback",
                "client_id": "test_client_id",
                "client_secret": "test_client_secret",
            },
        )
>       assert response.status_code == 200
E       assert 500 == 200
E        +  where 500 = <WrapperTestResponse streamed [500 INTERNAL SERVER ERROR]>.status_code

tests/test_authz.py:26: AssertionError
tests/test_authz.py::test_authorize_endpoint
Stack Traces | 0.093s run time
client = <FlaskClient <Flask 'teufa.app'>>

    def test_authorize_endpoint(client):
        # Simulate a GET request to the authorize endpoint
        response = client.get("........./authz/oauth/authorize")
        assert response.status_code == 200
        assert b'<form method="post" action="........./authz/oauth/authorize">' in response.data
    
        # Simulate a POST request to the authorize endpoint
        response = client.post("........./authz/oauth/authorize")
>       assert (
            response.status_code == 200 or response.status_code == 302
        )  # Depending on your redirect logic
E       assert (500 == 200 or 500 == 302)
E        +  where 500 = <WrapperTestResponse streamed [500 INTERNAL SERVER ERROR]>.status_code
E        +  and   500 = <WrapperTestResponse streamed [500 INTERNAL SERVER ERROR]>.status_code

tests/test_authz.py:9: AssertionError

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

@brosner brosner force-pushed the 01-20-add_oauth branch 3 times, most recently from 73e336a to f84a8ea Compare January 21, 2025 00:47
@brosner brosner marked this pull request as ready for review January 21, 2025 00:48
@brosner brosner force-pushed the 01-20-add_oauth branch from 67db294 to e1c5339 Compare May 27, 2025 01:34
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.

2 participants