def test_fetch_without_code_is_noop(install_mockery, fetching_not_allowed): """do_fetch for packages without code should be a no-op""" pkg = Spec('a').concretized().package pkg.has_code = False pkg.do_fetch()