Skip to content

Commit

Permalink
Fix CI (#2220)
Browse files Browse the repository at this point in the history
* Fix quart tests
* Fix Starlite tests
  • Loading branch information
antonpirker committed Jul 3, 2023
1 parent 0919a95 commit acb504b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
22 changes: 14 additions & 8 deletions tests/integrations/quart/test_quart.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
import pytest
import pytest_asyncio

quart = pytest.importorskip("quart")

from quart import Quart, Response, abort, stream_with_context
from quart.views import View

from quart_auth import AuthManager, AuthUser, login_user

from sentry_sdk import (
set_tag,
configure_scope,
Expand All @@ -21,8 +14,21 @@
from sentry_sdk.integrations.logging import LoggingIntegration
import sentry_sdk.integrations.quart as quart_sentry

quart = pytest.importorskip("quart")

from quart import Quart, Response, abort, stream_with_context
from quart.views import View

from quart_auth import AuthUser, login_user

try:
from quart_auth import QuartAuth

auth_manager = QuartAuth()
except ImportError:
from quart_auth import AuthManager

auth_manager = AuthManager()
auth_manager = AuthManager()


@pytest_asyncio.fixture
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,12 @@ deps =
starlette-v0.21: starlette>=0.21.0,<0.22.0

# Starlite
starlite: starlite
starlite: pytest-asyncio
starlite: python-multipart
starlite: requests
starlite: cryptography
starlite: pydantic<2.0.0
starlite: starlite
{py3.8,py3.9}-starlite: typing-extensions==4.5.0 # this is used by pydantic, which is used by starlite. When the problem is fixed in here or pydantic, this can be removed

# SQLAlchemy
Expand Down

0 comments on commit acb504b

Please sign in to comment.