Skip to content

[TECH DEBT] Raise NotFound exception as side_effect in test_install.py unit tests #2700

@JCZuurmond

Description

@JCZuurmond

Currently we have raise NotFound as a side_effect in the test_install.py as follows:

ws.workspace.get_status = not_found

with:

def not_found(_):
msg = "save_config"
raise NotFound(msg)

Solution

The following should suffice and is more correct:

ws.workspace.get_status.side_effect = NotFound

Note: Please verify if the side effect is needed at all. It might not be in all the test cases

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomersinternalthis pull request won't appear in release notestech debtchores and design flaws

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions