Skip to content

Commit

Permalink
test_admin: remove MockCLI class in favor of Python mock library
Browse files Browse the repository at this point in the history
Use mock.patch and mock.patch.object to patch the CLI methods
associated with the admin subcommands
Use mock asserts to confirm the right arguments are being passed
to popen, call, err and out
  • Loading branch information
sbesson committed Oct 30, 2023
1 parent 8360c3f commit d378c39
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 268 deletions.
130 changes: 0 additions & 130 deletions test/unit/clitest/mocks.py

This file was deleted.

Loading

0 comments on commit d378c39

Please sign in to comment.