diff options
author | Hong Minhee <minhee@dahlia.kr> | 2013-04-11 05:34:07 +0900 |
---|---|---|
committer | Hong Minhee <minhee@dahlia.kr> | 2013-04-11 05:34:07 +0900 |
commit | 3c780af24f0e69155edc946e114cbdd1839fb488 (patch) | |
tree | 10dfe56e35db0e347c5705d20f1d034149c80d5e /tests/test_oracle.py | |
parent | 45f013170c345a987efafc6d23b36035a124a8ce (diff) | |
download | alembic-3c780af24f0e69155edc946e114cbdd1839fb488.tar.gz |
Use relative imports
This change does not affect to any behaviors of it, but is just stylish
improvements to remove 2to3 dependency.
1. All old-style absolute imports e.g. `from alembic import util` are
replaced by relative imports e.g. `from . import util`.
2. Use of proxy modules (`alembic.op` and `alembic.context`) are replaced
by deferred import patterns, but these modules still exist.
3. Imports are grouped by 3 types of their origins (standard libraries,
third party libraries, and local modules) and blank lines are put between
each group of imports. This style is from PEP 8:
<http://www.python.org/dev/peps/pep-0008/#imports>
For stylish change, I can't do that much, because it was intentionally done
as it was by the author. If the author will allow me to make it more closer
to PEP 8 style, I will do that as well.
Diffstat (limited to 'tests/test_oracle.py')
-rw-r--r-- | tests/test_oracle.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/test_oracle.py b/tests/test_oracle.py index 87a3e4f..ae9677d 100644 --- a/tests/test_oracle.py +++ b/tests/test_oracle.py @@ -1,11 +1,14 @@ """Test op functions against ORACLE.""" from __future__ import with_statement -from tests import op_fixture, capture_context_buffer, \ + +from unittest import TestCase + +from sqlalchemy import Integer, Column + +from alembic import op, command +from . import op_fixture, capture_context_buffer, \ _no_sql_testing_config, staging_env, \ three_rev_fixture, clear_staging_env -from alembic import op, command -from sqlalchemy import Integer, Column -from unittest import TestCase class FullEnvironmentTests(TestCase): |