Skip to content

Commit

Permalink
Merge pull request #142 from peopledoc/fix_signature_issue
Browse files Browse the repository at this point in the history
Fix call to build_migration_plan (unexpected keyword 'schema_version')
  • Loading branch information
mike-perdide authored Mar 4, 2022
2 parents e30eee4 + a923885 commit b7a5e46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion septentrion/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def build_migration_plan(**settings_kwargs):
lib_kwargs = initialize(settings_kwargs)
schema_version = core.get_best_schema_version(settings=lib_kwargs["settings"])
return core.build_migration_plan(
settings=lib_kwargs["settings"], schema_version=schema_version
settings=lib_kwargs["settings"], from_version=schema_version
)


Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_build_migration_plan(fake_db, mocker):
assert lib.build_migration_plan() == "is it ?"

build_migration_plan.assert_called_with(
settings=mocker.ANY, schema_version=get_best_schema_version.return_value
settings=mocker.ANY, from_version=get_best_schema_version.return_value
)


Expand Down

0 comments on commit b7a5e46

Please sign in to comment.