Repository navigation
Mirror source layout in tests - #4426
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tests now mirror the
src/dstacklayout. A package's__init__.pyis tested intest_{package}.py, or in a test named after its single component (test_api_client.py,test_pipeline.py).api/server/and the run collection tests underapi/_public/.api/test_offers.pyintocore/compatibility/test_runs.pyandtest_gpus.py.plugins/builtin/rest_plugin/test_plugin.py.test_jobs_{running,submitted,terminating}.pyand thetest_instances/andtest_runs/pipeline test packages toinstances/andruns/, withtest_termination.pyfor runs renamed totest_terminating.py.services/logs/test_fluentbit.pyand splitservices/test_logs.pyintologs/test_filelog.pyandlogs/test_aws.py.cli/services/configurators/test_profile.pytocli/services/test_profile.pyand thecli/commands/test_dstack.pytests intocli/test_main.py.test_compute.py, using its autospec'dcomputefixture, backend config tests intoservices/test_config.py, and gateway update tests intogateways/test_gateways.py.