Unit tests should not depend on their running environment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
Fix Released
|
Undecided
|
Chris MacNaughton |
Bug Description
When the environment exports environment variables that are mocked in unit testing (eg: already defining ARCH: https:/
Failed to import test module: diskimage_
Traceback (most recent call last):
File "/usr/lib/
module = self._get_
File "/usr/lib/
__import_
File "/build/
class TestPackageInst
File "/build/
geInstall
@mock.
TypeError: type object got multiple values for keyword argument 'ARCH'
Fix proposed to branch: master /review. opendev. org/735309
Review: https:/