File tree Expand file tree Collapse file tree 10 files changed +26
-29
lines changed
src/data_designer/engine/testing Expand file tree Collapse file tree 10 files changed +26
-29
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -48,5 +48,10 @@ packages = ["src/data_designer"]
4848[tool .ruff ]
4949extend = " ../../pyproject.toml"
5050
51+ [tool .pytest .ini_options ]
52+ testpaths = [" tests" ]
53+ asyncio_default_fixture_loop_scope = " session"
54+ env = [" DISABLE_DATA_DESIGNER_PLUGINS=true" ]
55+
5156[tool .uv ]
5257package = true
Original file line number Diff line number Diff line change 11# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22# SPDX-License-Identifier: Apache-2.0
33
4- # Fixtures are loaded via root conftest.py's pytest_plugins declaration
4+ pytest_plugins = [ "data_designer.config.testing.fixtures" ]
Original file line number Diff line number Diff line change @@ -58,6 +58,11 @@ packages = ["src/data_designer"]
5858[tool .ruff ]
5959extend = " ../../pyproject.toml"
6060
61+ [tool .pytest .ini_options ]
62+ testpaths = [" tests" ]
63+ asyncio_default_fixture_loop_scope = " session"
64+ env = [" DISABLE_DATA_DESIGNER_PLUGINS=true" ]
65+
6166[tool .uv ]
6267package = true
6368
Original file line number Diff line number Diff line change 33
44"""Pytest fixtures for engine testing.
55
6- This module is registered as a pytest plugin in the root conftest.py per pytest best practices.
7- https://docs.pytest.org/en/stable/deprecations.html#pytest-plugins-in-non-top-level-conftest-files
6+ Located in src/ so it can be packaged and shared across subpackages via pytest_plugins.
87"""
98
109from __future__ import annotations
Original file line number Diff line number Diff line change 11# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22# SPDX-License-Identifier: Apache-2.0
33
4- # Fixtures are loaded via root conftest.py's pytest_plugins declaration
4+ pytest_plugins = [
5+ "data_designer.config.testing.fixtures" ,
6+ "data_designer.engine.testing.fixtures" ,
7+ ]
Original file line number Diff line number Diff line change 11# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22# SPDX-License-Identifier: Apache-2.0
33
4- # Fixtures are loaded via root conftest.py 's pytest_plugins declaration
4+ # Fixtures are loaded via pytest_plugins in this package 's top-level tests/conftest.py.
Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ packages = ["src/data_designer"]
5050[tool .ruff ]
5151extend = " ../../pyproject.toml"
5252
53+ [tool .pytest .ini_options ]
54+ testpaths = [" tests" ]
55+ asyncio_default_fixture_loop_scope = " session"
56+ env = [" DISABLE_DATA_DESIGNER_PLUGINS=true" ]
57+
5358[tool .uv ]
5459package = true
5560
Original file line number Diff line number Diff line change 11# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22# SPDX-License-Identifier: Apache-2.0
33
4- # Fixtures are loaded via root conftest.py's pytest_plugins declaration
4+ pytest_plugins = [
5+ "data_designer.config.testing.fixtures" ,
6+ "data_designer.engine.testing.fixtures" ,
7+ ]
Original file line number Diff line number Diff line change @@ -68,11 +68,6 @@ recipes = [
6868]
6969
7070[tool .pytest .ini_options ]
71- testpaths = [
72- " packages/data-designer-config/tests" ,
73- " packages/data-designer-engine/tests" ,
74- " packages/data-designer/tests" ,
75- ]
7671asyncio_default_fixture_loop_scope = " session"
7772env = [" DISABLE_DATA_DESIGNER_PLUGINS=true" ]
7873
You can’t perform that action at this time.
0 commit comments