summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorolly <olly@ollycope.com>2015-09-03 10:08:06 +0000
committerolly <olly@ollycope.com>2015-09-03 10:08:06 +0000
commitfc509fc43b1579534ea145dd64bc65c9f6ca31f3 (patch)
tree94645f1ce74052e074f357fc7053b8da5ff02353
parent3b1c4f3ae95f9850114bff14477a459ee5d66a60 (diff)
downloadyoyo-fc509fc43b1579534ea145dd64bc65c9f6ca31f3.tar.gz
Rename ini file to 'yoyo.ini'
-rwxr-xr-xREADME.rst2
-rw-r--r--yoyo/config.py2
-rwxr-xr-xyoyo/scripts/main.py2
-rw-r--r--yoyo/tests/test_cli_script.py12
4 files changed, 9 insertions, 9 deletions
diff --git a/README.rst b/README.rst
index f3dfd98..381a83f 100755
--- a/README.rst
+++ b/README.rst
@@ -178,7 +178,7 @@ password will not be available to other users via the system's process list.
Configuration file
------------------
-``yoyo-migrate`` looks for a configuration file called ``.yoyorc``, in
+``yoyo-migrate`` looks for a configuration file called ``yoyo.ini``, in
the current working directory or any ancestor directory.
If no configuration file is found ``yoyo-migrate`` will prompt you to
diff --git a/yoyo/config.py b/yoyo/config.py
index 030a748..227e881 100644
--- a/yoyo/config.py
+++ b/yoyo/config.py
@@ -18,7 +18,7 @@ Handle config file and argument parsing
import os
import iniherit
-CONFIG_FILENAME = '.yoyorc'
+CONFIG_FILENAME = 'yoyo.ini'
CONFIG_EDITOR_KEY = 'editor'
CONFIG_NEW_MIGRATION_COMMAND_KEY = 'post_create_command'
diff --git a/yoyo/scripts/main.py b/yoyo/scripts/main.py
index 74965c2..a2a3ec3 100755
--- a/yoyo/scripts/main.py
+++ b/yoyo/scripts/main.py
@@ -122,7 +122,7 @@ def make_argparser():
dest="use_config_file",
action="store_false",
default=True,
- help="Don't look for a .yoyorc config file")
+ help="Don't look for a yoyo.ini config file")
argparser = argparse.ArgumentParser(prog='yoyo-migrate',
parents=[global_parser])
diff --git a/yoyo/tests/test_cli_script.py b/yoyo/tests/test_cli_script.py
index 08c91d2..27674b1 100644
--- a/yoyo/tests/test_cli_script.py
+++ b/yoyo/tests/test_cli_script.py
@@ -62,10 +62,10 @@ class TestInteractiveScript(object):
cp.set('DEFAULT', item, defaults[item])
if sys.version_info < (3, 0):
- with open('.yoyorc', 'w') as f:
+ with open('yoyo.ini', 'w') as f:
cp.write(f)
else:
- with open('.yoyorc', 'w', encoding='UTF-8') as f:
+ with open('yoyo.ini', 'w', encoding='UTF-8') as f:
cp.write(f)
@@ -88,8 +88,8 @@ class TestYoyoScript(TestInteractiveScript):
def test_it_creates_config_file(self, tmpdir):
self.confirm.return_value = True
main(['apply', tmpdir, dburi])
- assert os.path.exists('.yoyorc')
- with open('.yoyorc') as f:
+ assert os.path.exists('yoyo.ini')
+ with open('yoyo.ini') as f:
assert 'database = {0}'.format(dburi) in f.read()
@with_migrations()
@@ -176,7 +176,7 @@ class TestYoyoScript(TestInteractiveScript):
assert prompts[1].startswith('delete legacy configuration')
assert not os.path.exists(legacy_config_path)
- with open('.yoyorc', 'r') as f:
+ with open('yoyo.ini', 'r') as f:
config = f.read()
assert 'database = sqlite:///\n' in config
assert 'migration_table = _yoyo_migration\n' in config
@@ -191,7 +191,7 @@ class TestYoyoScript(TestInteractiveScript):
self.confirm.return_value = True
main(['apply', tmpdir])
- with open('.yoyorc', 'r') as f:
+ with open('yoyo.ini', 'r') as f:
config = f.read()
assert 'migration_table = _yoyo_migration\n' in config