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.
idto get service principal id (#170). The service principal functionality has been enhanced with the introduction of a newidproperty, which returns the service principal ID as a string, simplifying its usage in tests. Thecreatemethod has been updated to utilize thisidproperty, ensuring consistency throughout the code. Additionally, theidproperty is now directly used when creating secrets, updating group memberships, and updating workspace assignments, with the exception of theworkspace_assignment.updatemethod. The logging of account links has also been updated to use theidproperty. Furthermore, test cases have been updated to include service principals in group members, and a new functionmake_run_ashas been introduced to create service principals for testing purposes, along with a new test casetest_make_run_as_no_argsto verify its functionality, addressing issues related to no-cheat in linked pull requests and improving overall testing capabilities.call_fixture()to work with pytest 8.4 (#166). Thecall_fixturefunction has been enhanced to support pytest version 8.4 and later, while maintaining backward compatibility with older versions. To address the deprecation of direct access to pytest fixtures since version 4.x, the function now dynamically checks the pytest version and utilizes the corresponding mechanism to unwrap fixtures. For pytest 8.4 and later, it leverages the_get_wrapped_functionattribute, whereas for older versions, it relies on the__pytest_wrapped__attribute. Additionally, the function now includes input validation, raising aValueErrorif the provided function is not a valid pytest fixture, ensuring more robust error handling. This update provides a temporary solution, with plans for future refinement to potentially utilizepytest.FixtureRequestandrequest.getfixturevalue()for accessing fixtures in a more supported and sustainable manner.