def test_manifest_expand_dependencies_auto_install(): res = manifest.expand_dependencies(["auth_signup"], include_auto_install=True) assert "auth_signup" in res assert "base" in res # obviously if odoo.release.version_info[0] < 12: assert "auth_crypt" in res # auth_crypt is autoinstall else: assert "iap" in res # iap is auto_install assert "web" in res # web is autoinstall assert "base_import" in res # base_import is indirect autoinstall
def test_manifest_expand_dependencies(): res = manifest.expand_dependencies(["auth_signup", "base_import"]) assert "auth_signup" in res assert "mail" in res # dependency of auth_signup assert "base_import" in res assert "base" in res # obviously assert "web" in res # base_import depends on web if odoo.release.version_info[0] < 12: assert "auth_crypt" not in res else: assert "iap" not in res # iap is auto_install
def test_manifest_expand_dependencies_auto_install(): res = manifest.expand_dependencies( ['auth_signup'], include_auto_install=True, ) assert 'auth_signup' in res assert 'base' in res # obviously if odoo.release.version_info[0] < 12: assert 'auth_crypt' in res # auth_crypt is autoinstall else: assert 'iap' in res # iap is auto_install assert 'web' in res # web is autoinstall assert 'base_import' in res # base_import is indirect autoinstall
def test_manifest_expand_dependencies(): res = manifest.expand_dependencies( ['auth_signup', 'base_import'], ) assert 'auth_signup' in res assert 'mail' in res # dependency of auth_signup assert 'base_import' in res assert 'base' in res # obviously assert 'web' in res # base_import depends on web if odoo.release.version_info[0] < 12: assert 'auth_crypt' not in res else: assert 'iap' not in res # iap is auto_install
def test_manifest_expand_dependencies_not_found(): with pytest.raises(manifest.ModuleNotFound): manifest.expand_dependencies(["not_a_module"])