summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Cope <olly@ollycope.com>2017-01-12 11:20:21 +0000
committerOlly Cope <olly@ollycope.com>2017-01-12 11:20:21 +0000
commit2929abc009bac63682cecfd1c8c8cf599fabcb13 (patch)
treedc1f5fdd2a3f6d2b11481a976aa7217a02826827
parent7c87b0213790d6181305d275c055011312c6c872 (diff)
downloadyoyo-2929abc009bac63682cecfd1c8c8cf599fabcb13.tar.gz
apply linter suggestions
-rwxr-xr-xyoyo/migrations.py4
-rw-r--r--yoyo/tests/__init__.py1
2 files changed, 3 insertions, 2 deletions
diff --git a/yoyo/migrations.py b/yoyo/migrations.py
index 9ade1ae..b07f0af 100755
--- a/yoyo/migrations.py
+++ b/yoyo/migrations.py
@@ -244,8 +244,8 @@ class MigrationStep(StepBase):
format = '|'.join(' %%- %ds ' % size for size in column_sizes)
format += '\n'
out.write(format % tuple(column_names))
- out.write('+'.join('-' * (size + 2) for size in column_sizes)
- + '\n')
+ out.write('+'.join('-' * (size + 2) for size in column_sizes) +
+ '\n')
for row in result:
out.write(format % tuple(row))
out.write(plural(len(result), '(%d row)', '(%d rows)') + "\n")
diff --git a/yoyo/tests/__init__.py b/yoyo/tests/__init__.py
index 03021cb..9561c27 100644
--- a/yoyo/tests/__init__.py
+++ b/yoyo/tests/__init__.py
@@ -71,5 +71,6 @@ class MigrationsContextManager(object):
return func(*(args + (self.tmpdir,)), **kwargs)
return decorator
+
with_migrations = MigrationsContextManager
migrations_dir = MigrationsContextManager