-
Notifications
You must be signed in to change notification settings - Fork 56
API Helper. #524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
API Helper. #524
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
f889cb5
to
1a648cc
Compare
@ajain-work thanks for the clarification. |
seanpearsonuk
approved these changes
Jun 20, 2022
mkundu1
approved these changes
Jun 20, 2022
hpohekar
added a commit
that referenced
this pull request
Oct 8, 2025
[//]: # (dependabot-start)⚠️ **Dependabot is rebasing this PR**⚠️ Rebasing might not happen immediately, so don't worry if this takes some time. Note: if you make any changes to this PR yourself, they will take precedence over the rebase. --- [//]: # (dependabot-end) Bumps the dependencies group with 5 updates: | Package | From | To | | --- | --- | --- | | [pytest](https://github.com/pytest-dev/pytest) | `8.4.1` | `8.4.2` | | [pytest-mock](https://github.com/pytest-dev/pytest-mock) | `3.14.1` | `3.15.1` | | [ansys-sphinx-theme](https://github.com/ansys/ansys-sphinx-theme) | `1.6.0` | `1.6.1` | | [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/) | `4.13.5` | `4.14.2` | | [quarto-cli](https://github.com/quarto-dev/quarto-cli) | `1.7.34` | `1.8.25` | Updates `pytest` from 8.4.1 to 8.4.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pytest-dev/pytest/releases">pytest's releases</a>.</em></p> <blockquote> <h2>8.4.2</h2> <h1>pytest 8.4.2 (2025-09-03)</h1> <h2>Bug fixes</h2> <ul> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/13478">#13478</a>: Fixed a crash when using <code>console_output_style</code>{.interpreted-text role="confval"} with <code>times</code> and a module is skipped.</p> </li> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/13530">#13530</a>: Fixed a crash when using <code>pytest.approx</code>{.interpreted-text role="func"} and <code>decimal.Decimal</code>{.interpreted-text role="class"} instances with the <code>decimal.FloatOperation</code>{.interpreted-text role="class"} trap set.</p> </li> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/13549">#13549</a>: No longer evaluate type annotations in Python <code>3.14</code> when inspecting function signatures.</p> <p>This prevents crashes during module collection when modules do not explicitly use <code>from __future__ import annotations</code> and import types for annotations within a <code>if TYPE_CHECKING:</code> block.</p> </li> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/13559">#13559</a>: Added missing [int]{.title-ref} and [float]{.title-ref} variants to the [Literal]{.title-ref} type annotation of the [type]{.title-ref} parameter in <code>pytest.Parser.addini</code>{.interpreted-text role="meth"}.</p> </li> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/13563">#13563</a>: <code>pytest.approx</code>{.interpreted-text role="func"} now only imports <code>numpy</code> if NumPy is already in <code>sys.modules</code>. This fixes unconditional import behavior introduced in [8.4.0]{.title-ref}.</p> </li> </ul> <h2>Improved documentation</h2> <ul> <li><a href="https://redirect.github.com/pytest-dev/pytest/issues/13577">#13577</a>: Clarify that <code>pytest_generate_tests</code> is discovered in test modules/classes; other hooks must be in <code>conftest.py</code> or plugins.</li> </ul> <h2>Contributor-facing changes</h2> <ul> <li><a href="https://redirect.github.com/pytest-dev/pytest/issues/13480">#13480</a>: Self-testing: fixed a few test failures when run with <code>-Wdefault</code> or a similar override.</li> <li><a href="https://redirect.github.com/pytest-dev/pytest/issues/13547">#13547</a>: Self-testing: corrected expected message for <code>test_doctest_unexpected_exception</code> in Python <code>3.14</code>.</li> <li><a href="https://redirect.github.com/pytest-dev/pytest/issues/13684">#13684</a>: Make pytest's own testsuite insensitive to the presence of the <code>CI</code> environment variable -- by <code>ogrisel</code>{.interpreted-text role="user"}.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pytest-dev/pytest/commit/bfae4224fd554d3d7f2c277a4cc092b6ec6af3ae"><code>bfae422</code></a> Prepare release version 8.4.2</li> <li><a href="https://github.com/pytest-dev/pytest/commit/89905381a163be30ae87d62e5f750e902d750c5f"><code>8990538</code></a> Fix passenv CI in tox ini and make tests insensitive to the presence of the C...</li> <li><a href="https://github.com/pytest-dev/pytest/commit/ca676bfe005aebcb12f4146d1b0f1d2772e2cd5d"><code>ca676bf</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest/issues/13687">#13687</a> from pytest-dev/patchback/backports/8.4.x/e63f6e51c...</li> <li><a href="https://github.com/pytest-dev/pytest/commit/975a60a63ce385a44655596e254c1899feaa53e4"><code>975a60a</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest/issues/13686">#13686</a> from pytest-dev/patchback/backports/8.4.x/12bde8af6...</li> <li><a href="https://github.com/pytest-dev/pytest/commit/7723ce84b87ab08f86ddafcb342acc28ba5ec99d"><code>7723ce8</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest/issues/13683">#13683</a> from even-even/fix_Exeption_to_Exception_in_errorMe...</li> <li><a href="https://github.com/pytest-dev/pytest/commit/b7f05680d1301e0969b30bcb3c4b27433c9ee2b7"><code>b7f0568</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest/issues/13685">#13685</a> from CoretexShadow/fix/docs-pytest-generate-tests</li> <li><a href="https://github.com/pytest-dev/pytest/commit/2c94c4a6948ba53440818389298157fa5d5f94cd"><code>2c94c4a</code></a> add missing colon (<a href="https://redirect.github.com/pytest-dev/pytest/issues/13640">#13640</a>) (<a href="https://redirect.github.com/pytest-dev/pytest/issues/13641">#13641</a>)</li> <li><a href="https://github.com/pytest-dev/pytest/commit/c3d7684bc01c8c48d05145a30c5211ca8656c68c"><code>c3d7684</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest/issues/13606">#13606</a> from pytest-dev/patchback/backports/8.4.x/5f9938563...</li> <li><a href="https://github.com/pytest-dev/pytest/commit/dc6e3be2ddc75a149b6d102d9b7c82ee47a00cfa"><code>dc6e3be</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest/issues/13605">#13605</a> from The-Compiler/training-update-2025-07</li> <li><a href="https://github.com/pytest-dev/pytest/commit/f87289c36c8dbe7740e3020f5546b6f8b0861ff0"><code>f87289c</code></a> Fix crash with <code>times</code> output style and skipped module (<a href="https://redirect.github.com/pytest-dev/pytest/issues/13573">#13573</a>) (<a href="https://redirect.github.com/pytest-dev/pytest/issues/13579">#13579</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pytest-dev/pytest/compare/8.4.1...8.4.2">compare view</a></li> </ul> </details> <br /> Updates `pytest-mock` from 3.14.1 to 3.15.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pytest-dev/pytest-mock/releases">pytest-mock's releases</a>.</em></p> <blockquote> <h2>v3.15.1</h2> <p><em>2025-09-16</em></p> <ul> <li><a href="https://redirect.github.com/pytest-dev/pytest-mock/issues/529">#529</a>: Fixed <code>itertools._tee object has no attribute error</code> -- now <code>duplicate_iterators=True</code> must be passed to <code>mocker.spy</code> to duplicate iterators.</li> </ul> <h2>v3.15.0</h2> <p><em>2025-09-04</em></p> <ul> <li>Python 3.8 (EOL) is no longer supported.</li> <li><a href="https://redirect.github.com/pytest-dev/pytest-mock/pull/524">#524</a>: Added <code>spy_return_iter</code> to <code>mocker.spy</code>, which contains a duplicate of the return value of the spied method if it is an <code>Iterator</code>.</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst">pytest-mock's changelog</a>.</em></p> <blockquote> <h2>3.15.1</h2> <p><em>2025-09-16</em></p> <ul> <li><code>[#529](pytest-dev/pytest-mock#529) <https://github.com/pytest-dev/pytest-mock/issues/529></code>_: Fixed <code>itertools._tee object has no attribute error</code> -- now <code>duplicate_iterators=True</code> must be passed to <code>mocker.spy</code> to duplicate iterators.</li> </ul> <h2>3.15.0</h2> <p><em>2025-09-04</em></p> <ul> <li>Python 3.8 (EOL) is no longer supported.</li> <li><code>[#524](pytest-dev/pytest-mock#524) <https://github.com/pytest-dev/pytest-mock/pull/524></code>_: Added <code>spy_return_iter</code> to <code>mocker.spy</code>, which contains a duplicate of the return value of the spied method if it is an <code>Iterator</code>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pytest-dev/pytest-mock/commit/e1b5c62a38c5a05cae614aef3847f240ba50d269"><code>e1b5c62</code></a> Release 3.15.1</li> <li><a href="https://github.com/pytest-dev/pytest-mock/commit/184eb190d6be417f5f33727bcbc9704909479498"><code>184eb19</code></a> Set <code>spy_return_iter</code> only when explicitly requested (<a href="https://redirect.github.com/pytest-dev/pytest-mock/issues/537">#537</a>)</li> <li><a href="https://github.com/pytest-dev/pytest-mock/commit/4fa0088a0aa85eefb1313bd97adf43889bf1f647"><code>4fa0088</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/pytest-dev/pytest-mock/issues/536">#536</a>)</li> <li><a href="https://github.com/pytest-dev/pytest-mock/commit/f5aff33ce71ed4620acc43dc41cb3b198bcf4cb0"><code>f5aff33</code></a> Fix test failure with pytest 8+ and verbose mode (<a href="https://redirect.github.com/pytest-dev/pytest-mock/issues/535">#535</a>)</li> <li><a href="https://github.com/pytest-dev/pytest-mock/commit/adc41873c9d6aa69b87e3f108c93a29c847869aa"><code>adc4187</code></a> Bump actions/setup-python from 5 to 6 in the github-actions group (<a href="https://redirect.github.com/pytest-dev/pytest-mock/issues/533">#533</a>)</li> <li><a href="https://github.com/pytest-dev/pytest-mock/commit/95ad5700609aae73c6f767b8cc2ccfb2483e0f5c"><code>95ad570</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/pytest-dev/pytest-mock/issues/532">#532</a>)</li> <li><a href="https://github.com/pytest-dev/pytest-mock/commit/e696bf02c199b1f7d0c48adb450f40e5a75b699a"><code>e696bf0</code></a> Fix standalone mock support (<a href="https://redirect.github.com/pytest-dev/pytest-mock/issues/531">#531</a>)</li> <li><a href="https://github.com/pytest-dev/pytest-mock/commit/5b29b03ce9581cfcd867dd6c04a970fb2c861291"><code>5b29b03</code></a> Fix gen-release-notes script</li> <li><a href="https://github.com/pytest-dev/pytest-mock/commit/7d22ef4e560351832e60687d8bd15ebe2785ff3b"><code>7d22ef4</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest-mock/issues/528">#528</a> from pytest-dev/release-3.15.0</li> <li><a href="https://github.com/pytest-dev/pytest-mock/commit/90b29f89e2086c139a7b4fea89202faa192ee5a9"><code>90b29f8</code></a> Update CHANGELOG for 3.15.0</li> <li>Additional commits viewable in <a href="https://github.com/pytest-dev/pytest-mock/compare/v3.14.1...v3.15.1">compare view</a></li> </ul> </details> <br /> Updates `ansys-sphinx-theme` from 1.6.0 to 1.6.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/ansys/ansys-sphinx-theme/releases">ansys-sphinx-theme's releases</a>.</em></p> <blockquote> <h2>v1.6.1</h2> <h1><a href="https://github.com/ansys/ansys-sphinx-theme/releases/tag/v1.6.1">1.6.1</a> (September 11, 2025)</h1> <p>Fixed</p> <!-- raw HTML omitted --> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/ansys/ansys-sphinx-theme/commit/f461b6c4c203c8bec14229ce98492e6ddf955297"><code>f461b6c</code></a> chore: updating CHANGELOG for v1.6.1</li> <li><a href="https://github.com/ansys/ansys-sphinx-theme/commit/28ea399a86bbf0cf9a19fdb583d436b96bbf5f3c"><code>28ea399</code></a> release: bump version 1.6.1</li> <li>See full diff in <a href="https://github.com/ansys/ansys-sphinx-theme/compare/v1.6.0...v1.6.1">compare view</a></li> </ul> </details> <br /> Updates `beautifulsoup4` from 4.13.5 to 4.14.2 Updates `quarto-cli` from 1.7.34 to 1.8.25 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/quarto-dev/quarto-cli/releases">quarto-cli's releases</a>.</em></p> <blockquote> <h2>v1.8.25</h2> <p><strong>Changelog since last release</strong>: <a href="https://github.com/quarto-dev/quarto-cli/compare/v1.8.24...v1.8.25">https://github.com/quarto-dev/quarto-cli/compare/v1.8.24...v1.8.25</a></p> <p>Full 1.8 changelog up to this version:</p> <ul> <li> <p>View: <a href="https://github.com/quarto-dev/quarto-cli/blob/v1.8.25/news/changelog-1.8.md">https://github.com/quarto-dev/quarto-cli/blob/v1.8.25/news/changelog-1.8.md</a></p> </li> <li> <p>Download: <a href="https://github.com/quarto-dev/quarto-cli/releases/download/v1.8.25/changelog.md">https://github.com/quarto-dev/quarto-cli/releases/download/v1.8.25/changelog.md</a></p> </li> </ul> <h2>v1.8.24</h2> <p><strong>Changelog since last release</strong>: <a href="https://github.com/quarto-dev/quarto-cli/compare/v1.8.23...v1.8.24">https://github.com/quarto-dev/quarto-cli/compare/v1.8.23...v1.8.24</a></p> <p>Full 1.8 changelog up to this version:</p> <ul> <li> <p>View: <a href="https://github.com/quarto-dev/quarto-cli/blob/v1.8.24/news/changelog-1.8.md">https://github.com/quarto-dev/quarto-cli/blob/v1.8.24/news/changelog-1.8.md</a></p> </li> <li> <p>Download: <a href="https://github.com/quarto-dev/quarto-cli/releases/download/v1.8.24/changelog.md">https://github.com/quarto-dev/quarto-cli/releases/download/v1.8.24/changelog.md</a></p> </li> </ul> <h2>v1.8.23</h2> <p><strong>Changelog since last release</strong>: <a href="https://github.com/quarto-dev/quarto-cli/compare/v1.8.22...v1.8.23">https://github.com/quarto-dev/quarto-cli/compare/v1.8.22...v1.8.23</a></p> <p>Full 1.8 changelog up to this version:</p> <ul> <li> <p>View: <a href="https://github.com/quarto-dev/quarto-cli/blob/v1.8.23/news/changelog-1.8.md">https://github.com/quarto-dev/quarto-cli/blob/v1.8.23/news/changelog-1.8.md</a></p> </li> <li> <p>Download: <a href="https://github.com/quarto-dev/quarto-cli/releases/download/v1.8.23/changelog.md">https://github.com/quarto-dev/quarto-cli/releases/download/v1.8.23/changelog.md</a></p> </li> </ul> <h2>v1.8.22</h2> <p><strong>Changelog since last release</strong>: <a href="https://github.com/quarto-dev/quarto-cli/compare/v1.8.21...v1.8.22">https://github.com/quarto-dev/quarto-cli/compare/v1.8.21...v1.8.22</a></p> <p>Full 1.8 changelog up to this version:</p> <ul> <li> <p>View: <a href="https://github.com/quarto-dev/quarto-cli/blob/v1.8.22/news/changelog-1.8.md">https://github.com/quarto-dev/quarto-cli/blob/v1.8.22/news/changelog-1.8.md</a></p> </li> <li> <p>Download: <a href="https://github.com/quarto-dev/quarto-cli/releases/download/v1.8.22/changelog.md">https://github.com/quarto-dev/quarto-cli/releases/download/v1.8.22/changelog.md</a></p> </li> </ul> <h2>v1.8.21</h2> <p><strong>Changelog since last release</strong>: <a href="https://github.com/quarto-dev/quarto-cli/compare/v1.8.20...v1.8.21">https://github.com/quarto-dev/quarto-cli/compare/v1.8.20...v1.8.21</a></p> <p>Full 1.8 changelog up to this version:</p> <ul> <li> <p>View: <a href="https://github.com/quarto-dev/quarto-cli/blob/v1.8.21/news/changelog-1.8.md">https://github.com/quarto-dev/quarto-cli/blob/v1.8.21/news/changelog-1.8.md</a></p> </li> <li> <p>Download: <a href="https://github.com/quarto-dev/quarto-cli/releases/download/v1.8.21/changelog.md">https://github.com/quarto-dev/quarto-cli/releases/download/v1.8.21/changelog.md</a></p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/8468c59a7cf0505b596e8e371eea498655100587"><code>8468c59</code></a> Update version.txt</li> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/d4efab202f2159538575fa8da960351f2c3878d4"><code>d4efab2</code></a> do not return undefined colors when splitting brand</li> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/e4c6439ee6f5f5af2a070015eb5c5c3c86d351f5"><code>e4c6439</code></a> changelog</li> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/c19fd11333f312fe0c2d420d6896e929addfecf7"><code>c19fd11</code></a> axe is an html-only format</li> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/65eb9601a28a63b1f04b829abe6a062575fc73c9"><code>65eb960</code></a> restore 1.7 behavior on pandoc failure</li> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/59aee749d8bbef72e5ad8725a40615a858d41736"><code>59aee74</code></a> brand logo shortcode: don't add class if variant specified</li> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/9553c5e0a708c91dc5858aa5abf53bdb480eca46"><code>9553c5e</code></a> minimal: true should disable brand, not crash</li> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/182df234505278f75949af693bb887f3025b9490"><code>182df23</code></a> brand: also resolve logo paths directly on sizes</li> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/013f6e83a2a00d29ef065e6df84d912a9924ea3f"><code>013f6e8</code></a> Merge pull request <a href="https://redirect.github.com/quarto-dev/quarto-cli/issues/13406">#13406</a> from quarto-dev/backport/rsconnect-tar-bundle</li> <li><a href="https://github.com/quarto-dev/quarto-cli/commit/a6162b947082ee544683b9b680aff1e8e4e3f314"><code>a6162b9</code></a> Add to changelog the regression fix</li> <li>Additional commits viewable in <a href="https://github.com/quarto-dev/quarto-cli/compare/v1.7.34...v1.8.25">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Co-authored-by: Harshal Pohekar <106588300+hpohekar@users.noreply.github.com>
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.
LocalObjectExtractor class was helper class for post objects. So moved it under visualization module.
Now this class is passed during post object instantiation.