Skip to content

Add necessary mocks to test_ovf unit tests#1087

Merged
TheRealFalcon merged 1 commit into
canonical:mainfrom
TheRealFalcon:fix-ovf-unit
Oct 29, 2021
Merged

Add necessary mocks to test_ovf unit tests#1087
TheRealFalcon merged 1 commit into
canonical:mainfrom
TheRealFalcon:fix-ovf-unit

Conversation

@TheRealFalcon
Copy link
Copy Markdown
Contributor

We likely have a test somewhere not cleaning up its mocks causing tests to run after it to not have to mock things that should be mocked. When run in isolation, these tests will fail. We need to find this test and fix it, but for now, fix the lack of mocks.

Copy link
Copy Markdown
Collaborator

@blackboxsw blackboxsw left a comment

Choose a reason for hiding this comment

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

+1 on this. Though I think we probably should run through all tests independently to sort out other "leaks":
I think the following also fail:
FAILED tests/unittests/test_data.py
FAILED tests/unittests/test_distros/test_netconfig.py

Copy link
Copy Markdown
Collaborator

@blackboxsw blackboxsw left a comment

Choose a reason for hiding this comment

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

+1 on this fix. confirmed fix locally. there might be a few others to capture later.

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