Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove remaining imports/calls to six not automatically removed by pyupgrade. | Ben Sturmfels | 2021-03-05 | 1 | -2/+0 |
| | |||||
* | Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code. | Ben Sturmfels | 2021-03-05 | 1 | -133/+133 |
| | |||||
* | Fix dependencies and tests for clean Python 2 & 3 test runs under Docker. | Ben Sturmfels | 2020-04-28 | 1 | -0/+1 |
| | | | | | This change gives a clean test run in the Debian-based Python 2 and Python 3 docker images. | ||||
* | tests: Fix migration tests; foundations are now installed separately | Christopher Allan Webber | 2016-03-29 | 1 | -29/+9 |
| | | | | | | | * mediagoblin/tests/test_sql_migrations.py: Import migration.changeset even in python 3. (FOUNDATIONS): Removed. (test_set1_to_set3): Removed foundations checks. | ||||
* | tests: importorskip migration tests on "migrate" rather than on Python 3 | Christopher Allan Webber | 2016-03-29 | 1 | -1/+1 |
| | | | | | | | | | Previously we assumed we wouldn't run migration tests if we're on Python 3, but now that we support sqlalchemy-migrate with Python 3, switch to checking based on "migrate" importability. * mediagoblin/tests/test_sql_migrations.py: Update test skipping to rely on "migrate" module presence rather than Python 3 check. | ||||
* | Skip test_sql_migrations on Python 3 for now. | Berker Peksag | 2014-07-28 | 1 | -3/+7 |
| | |||||
* | Use six.iteritems() instead of dict.iteritems(). | Berker Peksag | 2014-05-26 | 1 | -1/+3 |
| | |||||
* | I added a few more unitests in this commit. It now confirms that even after mi- | tilly-Q | 2013-07-31 | 1 | -1/+11 |
| | | | | -gration, there is only one of each Foundation object. | ||||
* | In this commit I added a few unittests to account for Foundations. There were | tilly-Q | 2013-07-31 | 1 | -6/+21 |
| | | | | | only a few tests I had to add to mediagoblin/tests/test_sql_migrations.py beca- -use the foundation creation only happens at database initialization. | ||||
* | Starting to write unit tests... | tilly-Q | 2013-07-30 | 1 | -5/+8 |
| | |||||
* | Reverting "Always activate testing in every test module ever." | Christopher Allan Webber | 2013-05-17 | 1 | -3/+0 |
| | | | | | | Revert "Always activate testing in every test module ever." This reverts commit 0536306048daa0970d2e43411ba2a9bf073e570e. | ||||
* | Always activate testing in every test module ever. | Christopher Allan Webber | 2013-05-16 | 1 | -0/+3 |
| | | | | Kind of a dorky way to implement this, but... | ||||
* | Move db.sql.migration_tools to db.migration_tools. | Elrond | 2013-01-08 | 1 | -1/+1 |
| | | | | Follow the new trend. | ||||
* | Move all the migration tools into new migration_tools.py | Elrond | 2013-01-08 | 1 | -1/+1 |
| | | | | | | | | | Factor all the migration related stuff out into a new .db.sql.migration_tools. First we don't have to load this module for our normal server. Second it makes all the import dependencies a little more cleaner. | ||||
* | Mv db.sql.base to db.base | Sebastian Spaeth | 2013-01-07 | 1 | -1/+1 |
| | | | | | | | | This concludes the db.sql.* -> db.* move. Our db abstraction layer is sqlalchemy, so there is no need to a separate db.sql.* hierarchy. All tests have been run for each of the commit series to make sure everything works at every step. | ||||
* | Move db.sql.util to db.util | Sebastian Spaeth | 2013-01-07 | 1 | -1/+1 |
| | | | | | | | | Now that sqlalchemy is providing the database abstractions, there is no need to hide everything in db.sql. sub-modules. It complicates the code and provides a futher layer of indirection. Move the db.sql.util.py to db.util.py and adapt the importers. | ||||
* | Add a UniqueConstraint add test in test_sql_migrations | Christopher Allan Webber | 2012-12-05 | 1 | -3/+26 |
| | | | | | We should have this anyway, and Elrond needs it to help fix current broken migration thingies. | ||||
* | Moving the "dependency injection printer tools" over to tools/common.py | Christopher Allan Webber | 2012-07-14 | 1 | -12/+1 |
| | |||||
* | Level exits are Unicode too. | Brett Smith | 2012-07-04 | 1 | -3/+3 |
| | |||||
* | Make sure MigrationManagers always get Unicode names. | Brett Smith | 2012-07-04 | 1 | -4/+4 |
| | | | | | If we fail to do this, SQLAlchemy complains that we're binding a non-Unicode value to a Unicode column. | ||||
* | Commenting out the migrations that don't exist yet | Christopher Allan Webber | 2012-02-18 | 1 | -4/+4 |
| | |||||
* | Explained why migration #1 commented out. | Christopher Allan Webber | 2012-01-29 | 1 | -0/+3 |
| | |||||
* | Excepting that migration 1 doesn't work(!), sqlalchemy migration branch working | Christopher Allan Webber | 2012-01-29 | 1 | -36/+72 |
| | | | | | | | The reason migration 1 doesn't work, and is commented out, is because of sqlalchemy-migrate not handling certain constraints while dropping binary sqlite columns right. See also: http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=143&thanks=143&ts=1327882242 | ||||
* | db_conn.engine -> db_conn.bind | Christopher Allan Webber | 2012-01-29 | 1 | -21/+21 |
| | |||||
* | Migration manager's current migration should be 3, not 7, after running all ↵ | Christopher Allan Webber | 2012-01-29 | 1 | -3/+3 |
| | | | | migrations! | ||||
* | Fixed the descriptions for the necroplex! | Christopher Allan Webber | 2012-01-29 | 1 | -2/+2 |
| | |||||
* | assert column type from Unicode -> VARCHAR. SQLAlchemy reflection only so ↵ | Christopher Allan Webber | 2012-01-29 | 1 | -29/+29 |
| | | | | smart ;) | ||||
* | printer = CollectingPrinter -> printer = CollectingPrinter() | Christopher Allan Webber | 2012-01-29 | 1 | -2/+2 |
| | |||||
* | CollectingPrinter is a class, not a function! | Christopher Allan Webber | 2012-01-29 | 1 | -1/+1 |
| | |||||
* | magical_powers relationship set on wrong table, fixed | Christopher Allan Webber | 2012-01-29 | 1 | -1/+1 |
| | |||||
* | Migration records are dicts, not lists. Fix SET1_MIGATIONS! | Christopher Allan Webber | 2012-01-29 | 1 | -1/+1 |
| | |||||
* | test_set1_to_set3() now has appropriate amount of code, even if it doesn't ↵ | Christopher Allan Webber | 2012-01-29 | 1 | -8/+37 |
| | | | | run :) | ||||
* | Fixing some obvious errors caught by pyflakes | Christopher Allan Webber | 2012-01-29 | 1 | -21/+25 |
| | |||||
* | More stuff even yet per sql migration stuff! And still not ready! | Christopher Allan Webber | 2012-01-29 | 1 | -4/+4 |
| | |||||
* | Closer to the end of this migration test... | Christopher Allan Webber | 2012-01-29 | 1 | -2/+70 |
| | |||||
* | unicode stuff and more bits on the actual migration method | Christopher Allan Webber | 2012-01-29 | 1 | -89/+214 |
| | |||||
* | A ton more work on the SQL migration unit tests... | Christopher Allan Webber | 2012-01-29 | 1 | -5/+85 |
| | |||||
* | Wrote up some scaffolding for the actual tests | Christopher Allan Webber | 2012-01-29 | 1 | -3/+53 |
| | |||||
* | Insert migration objects round 3 | Christopher Allan Webber | 2012-01-29 | 1 | -0/+87 |
| | |||||
* | Wrote some (semi-silly) descriptions of each migration | Christopher Allan Webber | 2012-01-29 | 1 | -0/+18 |
| | |||||
* | Docstrings for stage 2 migrations | Christopher Allan Webber | 2012-01-29 | 1 | -0/+19 |
| | |||||
* | Theoretical full set of migration2 objects to insert for testing | Christopher Allan Webber | 2012-01-29 | 1 | -1/+76 |
| | |||||
* | Insert migration1 objects. Also, Level1 id from Integer->Unicode | Christopher Allan Webber | 2012-01-29 | 1 | -7/+43 |
| | |||||
* | All theoretical migrations written! | Christopher Allan Webber | 2012-01-29 | 1 | -5/+25 |
| | |||||
* | binding migration metadata to engine, and level_exits_new_table should now work | Christopher Allan Webber | 2012-01-29 | 1 | -6/+6 |
| | |||||
* | More test migration work. Closing to working migrations for set 2... | Christopher Allan Webber | 2012-01-29 | 1 | -5/+62 |
| | | | | Also, this file is written in 2012, correct that ;) | ||||
* | Might as well call it "set2 migrations" | Christopher Allan Webber | 2012-01-29 | 1 | -1/+1 |
| | |||||
* | A theoretical set of models to migrate about with, plus one migration ;) | Christopher Allan Webber | 2012-01-29 | 1 | -0/+177 |