summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jan.dittberner@googlemail.com>2011-10-28 16:14:21 +0200
committerJan Dittberner <jan.dittberner@googlemail.com>2011-10-28 16:14:21 +0200
commit324a2c766ddfe2057a535ba839ff10c3b12cef19 (patch)
tree619b7f92d70a5644d5b73fc4a610a9fd398e8e20
parent18c3f68d41fd65681bf76994fdea54b045e35298 (diff)
downloadsqalchemy-migrate-324a2c766ddfe2057a535ba839ff10c3b12cef19.tar.gz
add regression test (fixes issue 105)
-rw-r--r--docs/changelog.rst2
-rw-r--r--migrate/tests/versioning/test_api.py6
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/changelog.rst b/docs/changelog.rst
index 873be7c..7f8f700 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -20,6 +20,8 @@ Fixed Bugs
******************
- fix issue 83: api test downgrade/upgrade does not work with sql scripts
+- fix issue 105: passing a unicode string as the migrate repository fails (add
+ regression test)
- fix issue 113 and issue 123: column creation in make_update_script_for_model
and required API change
- fix issue 118: upgrade and downgrade functions are reversed when using the
diff --git a/migrate/tests/versioning/test_api.py b/migrate/tests/versioning/test_api.py
index 3e6fdeb..855c49c 100644
--- a/migrate/tests/versioning/test_api.py
+++ b/migrate/tests/versioning/test_api.py
@@ -44,6 +44,12 @@ class TestAPI(Pathed):
api.create(repo, 'temp')
api.version(repo)
+ def test_version_control(self):
+ repo = self.tmp_repos()
+ api.create(repo, 'temp')
+ api.version_control('sqlite:///', repo)
+ api.version_control('sqlite:///', unicode(repo))
+
def test_source(self):
repo = self.tmp_repos()
api.create(repo, 'temp')