Skip to content

Conversation

@boonware
Copy link
Contributor

Issue

MASAIB-1412

Details

  • Existing tests require an OpenShift environment. In addition, not all existing code has dedicated test cases. I have added some strict unit tests for the function getCurrentCatalog which mock the OpenShift API dependency, as should be done when dealing strictly with unit tests. This approach will allow us to update code in a faster fashion without needing to rely on full flown functional testing with a live environment.
  • The "setuptools" package is required as a dev dependency as the "distutils" package is removed in the latest version of Python and "setuptools" now provides it.

@boonware boonware requested a review from a team as a code owner September 19, 2025 10:23
Josef Harte and others added 4 commits September 19, 2025 11:30
Fix import error:

import file mismatch:
imported module 'test_mas' has this __file__ attribute:
  /home/runner/work/python-devops/python-devops/test/src/test_mas.py
which is not the same as the test file we want to collect:
  /home/runner/work/python-devops/python-devops/test/unit/test_mas.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
@durera durera added this pull request to the merge queue Oct 23, 2025
Merged via the queue into stable with commit 33debc8 Oct 23, 2025
2 checks passed
@durera durera deleted the 1412 branch October 23, 2025 10:37
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.

2 participants