Skip to content

Commit

Permalink
fix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Jun 11, 2016
1 parent 8a85499 commit cae8ba7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions manage/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
import rlcompleter
from .template import default_manage_dict


MANAGE_FILE = 'manage.yml'

if os.path.exists(MANAGE_FILE):
with open(MANAGE_FILE) as manage_file:
manage_dict = yaml.load(manage_file)
Expand Down Expand Up @@ -41,8 +43,7 @@ def init(banner):
creating manage.yml
"""
if os.path.exists(MANAGE_FILE):
if not click.confirm(
'Do you want to rewrite manage.yml?'):
if not click.confirm('Do you want to rewrite manage.yml?'):
return
else:
"Copy the file"
Expand Down
7 changes: 3 additions & 4 deletions tests/test_manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
Tests for `manage` module.
"""

import pytest
# import pytest

from contextlib import contextmanager
# from contextlib import contextmanager
from click.testing import CliRunner

from manage import manage
from manage import cli


Expand All @@ -25,6 +24,7 @@ def setup_class(cls):

def test_something(self):
pass

def test_command_line_interface(self):
runner = CliRunner()
result = runner.invoke(cli.main)
Expand All @@ -37,4 +37,3 @@ def test_command_line_interface(self):
@classmethod
def teardown_class(cls):
pass

0 comments on commit cae8ba7

Please sign in to comment.