-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix insights_client <-> external_inventory interaction
Apparently something in my local testing did not work, and the "request" object for a session-scoped fixture is really not able to fetch function-scoped fixtures. Hence, change the approach a bit: - stop saving the "request" object of "external_inventory", as it is of no use - add an helper fixture for tests that use both "insights_client" and "external_inventory", which takes care of setting an internal field in the Inventory instance so it can work with the current instance of InsightsClient; make sure to unset it, so other tests do not get a leaked instance This hopefully should make the helper methods of the Inventory class that need to interact with insights-client usable again. Fixes/reworks commit 51ef24c. Signed-off-by: Pino Toscano <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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