-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a way to exclude some modules from the result of dependencies
- Loading branch information
Showing
2 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from mock import patch, MagicMock | ||
from odoo_tools.cli.odot import command | ||
from odoo_tools.api.environment import Environment | ||
|
||
from odoo_tools.api.modules import ModuleApi | ||
|
||
|
||
def test_module_deps(runner): | ||
|
||
with patch.object(ModuleApi, 'list') as list_modules: | ||
|
||
result = runner.invoke( | ||
command, | ||
[ | ||
'module', | ||
'deps', | ||
'--exclude-modules', | ||
'--csv-modules c,d', | ||
] | ||
) | ||
|
||
import pdb; pdb.set_trace() | ||
pass |