Skip to content

Mirror source layout in tests - #4426

Merged
r4victor merged 3 commits into
masterfrom
pr_mirror_api_tests
Oct 28, 2026
Merged

r4victor merged 3 commits into
masterfrom
pr_mirror_api_tests

Conversation

@r4victor

@r4victor r4victor commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Tests now mirror the src/dstack layout. A package's __init__.py is tested in test_{package}.py, or in a test named after its single component (test_api_client.py, test_pipeline.py).

  • Move API client tests under api/server/ and the run collection tests under api/_public/.
  • Split request exclude tests in api/test_offers.py into core/compatibility/test_runs.py and test_gpus.py.
  • Move the REST plugin tests to plugins/builtin/rest_plugin/test_plugin.py.
  • Rename job pipeline tests to test_jobs_{running,submitted,terminating}.py and the test_instances/ and test_runs/ pipeline test packages to instances/ and runs/, with test_termination.py for runs renamed to test_terminating.py.
  • Move fluentbit tests to services/logs/test_fluentbit.py and split services/test_logs.py into logs/test_filelog.py and logs/test_aws.py.
  • Move cli/services/configurators/test_profile.py to cli/services/test_profile.py and the cli/commands/test_dstack.py tests into cli/test_main.py.
  • Merge Lium volume tests into test_compute.py, using its autospec'd compute fixture, backend config tests into services/test_config.py, and gateway update tests into gateways/test_gateways.py.

@r4victor
r4victor merged commit e46ec09 into master Oct 28, 2026
29 checks passed
@r4victor
r4victor deleted the pr_mirror_api_tests branch October 28, 2026 10:16
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.

1 participant