Skip to content

Commit

Permalink
Rename config.Changes to config.CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljoseph committed Nov 8, 2014
1 parent 938bfa4 commit 8e75c7c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion changes/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def main(context, module_name, dry_run, debug, no_input, requirements, patch, mi

current_version = version.current_version(module_name)
repo_url = attributes.extract_attribute(module_name, '__url__')
context.obj = config.Changes(module_name, dry_run, debug, no_input, requirements, new_version, current_version, repo_url, version_prefix)
context.obj = config.CLI(module_name, dry_run, debug, no_input,
requirements, new_version, current_version,
repo_url, version_prefix)

probe.probe_project(context.obj)

Expand Down
2 changes: 1 addition & 1 deletion changes/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

class Changes(object):
class CLI(object):
test_command = None
pypi = None
skip_changelog = None
Expand Down
4 changes: 2 additions & 2 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import io
import shutil

from changes.config import Changes
from changes.config import CLI


module_name = 'test_app'
context = Changes(module_name, True, True, True, '%s/requirements.txt' % module_name, '0.0.2', '0.0.1', 'https://github.com/someuser/test_app', None)
context = CLI(module_name, True, True, True, '%s/requirements.txt' % module_name, '0.0.2', '0.0.1', 'https://github.com/someuser/test_app', None)
context.requirements = '%s/requirements.txt' % module_name
context.tmp_file = '%s/__init__.py' % module_name
context.initial_init_content = [
Expand Down

0 comments on commit 8e75c7c

Please sign in to comment.