Skip to content

Commit

Permalink
Refactor test_backend to use pytest-mock
Browse files Browse the repository at this point in the history
Parametrization also doesn't play nicely with @mock.patch.object decorators,
so this refactor paves the way for additional parametrization in future PRs.
  • Loading branch information
cognifloyd committed Oct 23, 2024
1 parent c472a14 commit 988f1ce
Show file tree
Hide file tree
Showing 2 changed files with 334 additions and 355 deletions.
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ mock==5.1.0
pylint~=3.1.0
pylint-plugin-utils>=0.4
pytest
pytest-mock
st2-auth-backend-flat-file
st2flake8>0.1
tox
Loading

0 comments on commit 988f1ce

Please sign in to comment.