Skip to content

Conversation

@da1910
Copy link
Collaborator

@da1910 da1910 commented Mar 20, 2022

Closes #171

Accompanying code generator generates path parameters with placeholder values like http://api.com/resource/{param}, this was being incorrectly handled, resulting in invalid resources.

This PR is some minor refactoring to improve testability, adding some tests for path and query parameter construction, and the fix for the underlying issue.

@da1910 da1910 requested a review from Andy-Grigg March 20, 2022 18:03
@codecov
Copy link

codecov bot commented Mar 20, 2022

Codecov Report

Merging #172 (4adfc70) into main (a14ca12) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #172      +/-   ##
==========================================
+ Coverage   91.83%   91.88%   +0.04%     
==========================================
  Files           8        8              
  Lines         821      826       +5     
==========================================
+ Hits          754      759       +5     
  Misses         67       67              
Impacted Files Coverage Δ
src/ansys/openapi/common/_api_client.py 97.93% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a14ca12...4adfc70. Read the comment docs.

Copy link
Contributor

@Andy-Grigg Andy-Grigg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice autouse fixture!

@da1910 da1910 merged commit b5bb855 into main Mar 21, 2022
@da1910 da1910 deleted the fix/171-path-parameters branch March 21, 2022 13:43
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.

Incorrect query params

2 participants