summaryrefslogtreecommitdiff
path: root/tests/test_offline_environment.py
Commit message (Collapse)AuthorAgeFilesLines
* zimports runMike Bayer2019-01-061-12/+11
| | | | | | | after black is applied, rewrite imports and fix remaining whitespace / identifier issues. Change-Id: I49474c085b5f4a4b52e4cf90c9705d6a896d4003
* pure black run + flake8Mike Bayer2019-01-061-66/+137
| | | | | | | run black -l 79 against source code, set up for full flake8 testing. Change-Id: I4108e1274d49894b9898ec5bd3a1147933a473d7
* Repair as_revision_number to return a tuple for "heads"Mike Bayer2018-02-161-3/+41
| | | | | | | | | | | | | Fixed bug where the :meth:`.Script.as_revision_number` method did not accommodate for the 'heads' identifier, which in turn caused the :meth:`.EnvironmentContext.get_head_revisions` and :meth:`.EnvironmentContext.get_revision_argument` methods to be not usable when multiple heads were present. The :meth:.`EnvironmentContext.get_head_revisions` method returns a tuple in all cases as documented. Change-Id: I085d9b6c3f4ceafd6828d24983768a3d3916ce00 Fixes: #482
* - move resolution of "starting rev" for --sql mode intoMike Bayer2015-02-031-0/+34
| | | | | | | | | | | | | | get_current_heads() directly; therefore we don't need to do this in alembic.command, which we were doing for stamp but not downgrade/upgrade. The slight change here is that the context.get_starting_revision_argument() method will return an abbreviated starting rev as abbreviated in all cases, including the stamp command, where we previously were converting a stamp argument first, but not for the upgrade or downgrade commands. - Fixed bug where using a partial revision identifier as the "starting revision" in ``--sql`` mode in a downgrade operation would fail to resolve properly. fixes #269
* - The "multiple heads / branches" feature has now landed. This isMike Bayer2014-11-201-4/+14
| | | | | | | | | | | | | | by far the most significant change Alembic has seen since its inception; while the workflow of most commands hasn't changed, and the format of version files and the ``alembic_version`` table are unchanged as well, a new suite of features opens up in the case where multiple version files refer to the same parent, or to the "base". Merging of branches, operating across distinct named heads, and multiple independent bases are now all supported. The feature incurs radical changes to the internals of versioning and traversal, and should be treated as "beta mode" for the next several subsequent releases within 0.7. fixes #167
* devMike Bayer2014-09-131-8/+8
|
* - finish flake8 on testsMike Bayer2014-09-091-0/+2
|
* - do an autopep8 pass for just about everything otherMike Bayer2014-09-091-1/+1
| | | | than line length
* Fixes to Py3k in-place compatibity regarding output encoding and related;Mike Bayer2013-11-211-3/+0
| | | | | | | the use of the new io.* package introduced some incompatibilities on Py2k. These should be resolved, due to the introduction of new adapter types for translating from io.* to Py2k file types, StringIO types. Thanks to Javier Santacruz for help with this.
* Fixes stdout --sql output in python2Javier Santacruz2013-10-171-0/+13
| | | | | | | | | When output_encoding is set, wraps the output buffer into a io.TextIOWrapper class This means that the output_buffer has to be a io.IOBase instance in order to work along with the TextIOWrapper Handles wrapping when the buffer is Python2 stdtout, which has 'file' type Adds test for this situation
* Use relative importsHong Minhee2013-04-111-3/+4
| | | | | | | | | | | | | | | | | | | | | 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.
* Remove unused importsHong Minhee2013-03-311-2/+2
|
* - [feature] Explicit error message describing the caseMike Bayer2012-10-181-11/+22
| | | | | when downgrade --sql is used without specifying specific start/end versions. #66
* the "stamp" command by itself does not set up "starting_rev"Mike Bayer2012-01-241-1/+9
|
* - Clean up file write operations so thatMike Bayer2011-12-031-2/+2
| | | | | | file handles are closed. - PyPy is supported.
* - some test cleanupMike Bayer2011-11-281-17/+17
| | | | | - add support for actual DB connections, test.cfg, etc. - add PG server default comparison tests, #6
* get env to have all the arguments before and after context is set upMike Bayer2011-11-141-37/+100
|
* - make start/end arguments available to environmentsMike Bayer2011-11-141-0/+72
- more environment functions - clean up start:end system - docs