def test_set_dry_run(crunchy_config_dict: dict): """Test to set the dry run of the api""" # GIVEN a crunchy API where dry run is False crunchy_api = CrunchyAPI(crunchy_config_dict) assert crunchy_api.dry_run is False # WHEN updating the dry run crunchy_api.set_dry_run(True) # THEN assert that the api has true dry run assert crunchy_api.dry_run is True
def fixture_real_crunchy_api(crunchy_config_dict): """crunchy api fixture""" _api = CrunchyAPI(crunchy_config_dict) _api.set_dry_run(True) yield _api