Skip to content

Commit

Permalink
fix testsuite: start grpc_mockserver before service start
Browse files Browse the repository at this point in the history
commit_hash:8981af54e3106c1572034e19e7cc9a3e0e1bdf62
  • Loading branch information
Anton3 committed Feb 26, 2025
1 parent 8edc2da commit 1eafd7e
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions testsuite/pytest_plugins/pytest_userver/plugins/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,19 @@ def extra_client_deps(some_fixtures_to_wait_before_service_start):
@pytest.fixture
def auto_client_deps(request) -> None:
"""
Service client dependencies hook that knows about pgsql, mongodb,
clickhouse, rabbitmq, kafka, redis_store, ydb, and mysql dependencies.
To add some other dependencies prefer overriding the
@ref extra_client_deps fixture.
Ensures that the following fixtures, if available, are run before service start:
* `pgsql`
* `mongodb`
* `clickhouse`
* `rabbitmq`
* kafka (`kafka_producer`, `kafka_consumer`)
* `redis_store`
* `mysql`
* @ref pytest_userver.plugins.ydb.ydb "ydb"
* @ref pytest_userver.plugins.grpc.mockserver.grpc_mockserver "grpc_mockserver"
To add other dependencies prefer overriding the @ref extra_client_deps fixture.
@ingroup userver_testsuite_fixtures
"""
Expand All @@ -197,6 +206,7 @@ def auto_client_deps(request) -> None:
'redis_store',
'mysql',
'ydb',
'grpc_mockserver',
}

try:
Expand Down

0 comments on commit 1eafd7e

Please sign in to comment.