Commits

Ronny Pfannschmidt  committed 00f0d3a

flake8

  • Participants
  • Parent commits 25c093f

Comments (0)

Files changed (4)

File micromigrate/__init__.py

 __all__ = [
     'MigrationError',
-    'apply_migrations', 'parse_migration',
+    'apply_migrations', 'parse_migration', 'missing_migrations',
     'find_in_path',
 ]
 from .types import MigrationError

File micromigrate/util.py

     state = db.state() or {}
     return verify_state(state, migrations)
 
+
 def apply_migrations(db, migrations):
+    state = db.state() or {}
     missing = missing_migrations(db, migrations)
     print(missing)
     while missing:
-        migration = pop_next_to_apply(
-                missing, state)
+        migration = pop_next_to_apply(missing, state)
         db.apply(migration)
         state[migration.name] = migration.checksum
     real_state = db.state()

File requirements.devel.txt

 hgdistver
+apsw
 sphinx
 pytest
 pytest-xdist

File testing/conftest.py

     dbname = getattr(item, '_dbname', None)
     if dbname is not None:
         from micromigrate.util import output_or_raise
-        
         try:
             report.sections.append(
                 ('db', output_or_raise('sqlite3', '.dump', dbname)))