def test_main_requirements_params(): """Test running install from main with default parameters set.""" flexmock(micropipenv).should_receive("requirements").with_args( method="pipenv", no_hashes=False, no_indexes=False, no_versions=False, only_direct=True, no_default=False, no_dev=False, no_comments=True, ).once() micropipenv.main(argv=["requirements", "--only-direct", "--no-comments"])
def test_main_install_params_default(): """Test running install from main with default parameters set.""" flexmock(micropipenv).should_receive("install").with_args( deploy=True, dev=True, pip_args=[], method=None).once() micropipenv.main(argv=["install", "--deploy", "--dev"])