feature(variable sub): substitue variables from other variables #346
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.
fixes #343 #342
This pull request includes various changes to improve the functionality and testing of the Dothttp project. The most important changes include enabling diagnostics and testing configurations in VSCode settings, modifying the property validation logic, updating the project version, adding a new HTTP request test file, and introducing a new test case for property substitution.
Improvements to development environment:
.vscode/settings.json
: Enabled diagnostics and testing configurations for Python and Dothttp.Enhancements to property validation:
dothttp/utils/property_util.py
: Modified thevalidate_n_gen
method to split properties on the first=
sign and resolve property values using a cache.Project version update:
pyproject.toml
: Updated the project version from0.0.43a29
to0.0.43
.New test file for HTTP requests:
test/extensions/commands/custom-property/property-refer.http
: Added a new test file to verify property substitution in HTTP requests.New test case for property substitution:
test/extensions/test_commands.py
: Added a test casetest_property_sub
to validate the property substitution logic in HTTP requests.