Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage for cumulus.cli.cci #708

Merged
merged 6 commits into from
Aug 9, 2018
Merged

Coverage for cumulus.cli.cci #708

merged 6 commits into from
Aug 9, 2018

Conversation

davisagli
Copy link
Contributor

This one's a bit of a doozy. Some changes that warrant special attention:

  • Moved global functions taking an initial 'config' param from cci.py to become methods of the CliConfig class
  • Removed the unused 'e' arg for handle_exception_debug
  • Made render_recursive handle lists better.
  • Stop passing the return from render_recursive to click.echo, because it takes care of echoing itself.
  • Make check_latest_version handle its own exceptions
  • Removed unused --extend option for project init
  • Removed unimplemented project_list and project_cd commands
  • Don't echo scratch org expiration when using org info with the --json flag
  • Delegate check for whether an org can be deleted to a can_delete method on the org config
  • Remove unused --delete option for org scratch
  • Fix exception handling for `org scratch_delete
  • Simplify exception handling for task run and flow run

Some changes that warrant special attention:
- Moved global functions taking an initial 'config' param from cci.py to become methods of the CliConfig class
- Removed the unused 'e' arg for handle_exception_debug
- Made render_recursive handle lists better.
- Stop passing the return from render_recursive to click.echo, because it takes care of echoing itself.
- Make check_latest_version handle its own exceptions
- Removed unused --extend option for `project init`
- Removed unimplemented project_list and project_cd commands
- Don't echo scratch org expiration when using `org info` with the --json flag
- Delegate check for whether an org can be deleted to a `can_delete` method on the org config
- Remove unused --delete option for `org scratch`
- Fix exception handling for `org scratch_delete
- Simplify exception handling for `task run` and `flow run`
@davisagli
Copy link
Contributor Author

Looks like I need to work on a few test failures; I'll let you know when this is ready for review.

@davisagli
Copy link
Contributor Author

Okay I think I've resolved those failures.

@@ -224,6 +225,7 @@ def test_project_init(self, click):
run_click_command(cci.project_init, obj=config)

# Make sure expected files/dirs were created
print recursive_list_files()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use python3 friendly print fn plz

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh, this was just meant for temporary debugging anyway. Will remove.

@cdcarter cdcarter merged commit 588ec7b into master Aug 9, 2018
@cdcarter cdcarter deleted the feature/coverage branch August 14, 2018 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants