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

report(currency): updated starlette version #579

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
27 changes: 15 additions & 12 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import sys
import pytest

if importlib.util.find_spec('celery'):
pytest_plugins = ("celery.contrib.pytest", )
if importlib.util.find_spec("celery"):
pytest_plugins = ("celery.contrib.pytest",)

# Set our testing flags
os.environ["INSTANA_TEST"] = "true"
Expand All @@ -20,7 +20,7 @@

# Cassandra and gevent tests are run in dedicated jobs on CircleCI and will
# be run explicitly. (So always exclude them here)
if not os.environ.get("CASSANDRA_TEST" ):
if not os.environ.get("CASSANDRA_TEST"):
collect_ignore_glob.append("*test_cassandra*")

if not os.environ.get("COUCHBASE_TEST"):
Expand Down Expand Up @@ -64,22 +64,25 @@
collect_ignore_glob.append("*test_grpcio*")
collect_ignore_glob.append("*test_sanic*")

@pytest.fixture(scope='session')
# Currently latest version of starlette depends on the `greenlet` module
# which is still not supporting Python 3.13
collect_ignore_glob.append("*test_starlette*")


@pytest.fixture(scope="session")
def celery_config():
return {
'broker_connection_retry_on_startup': True,
'broker_url': 'redis://localhost:6379',
'result_backend': 'redis://localhost:6379'
"broker_connection_retry_on_startup": True,
"broker_url": "redis://localhost:6379",
"result_backend": "redis://localhost:6379",
}


@pytest.fixture(scope='session')
@pytest.fixture(scope="session")
def celery_enable_logging():
return True


@pytest.fixture(scope='session')
@pytest.fixture(scope="session")
def celery_includes():
return {
'tests.frameworks.test_celery'
}
return {"tests.frameworks.test_celery"}
2 changes: 1 addition & 1 deletion tests/requirements-gevent-starlette.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ gevent>=1.4.0
mock>=2.0.0
pyramid>=2.0.1
pytest>=4.6
starlette>=0.12.13
starlette>=0.38.2
CagriYonca marked this conversation as resolved.
Show resolved Hide resolved
urllib3>=1.26.5
uvicorn>=0.13.4
Loading