2024-08-13 15:47:27 +10:00
|
|
|
# Bonsai - OpenBIM Blender Add-on
|
2022-01-17 16:20:01 +11:00
|
|
|
# Copyright (C) 2022 Dion Moult <dion@thinkmoult.com>
|
|
|
|
|
#
|
2024-08-13 15:47:27 +10:00
|
|
|
# This file is part of Bonsai.
|
2022-01-17 16:20:01 +11:00
|
|
|
#
|
2024-08-13 15:47:27 +10:00
|
|
|
# Bonsai is free software: you can redistribute it and/or modify
|
2022-01-17 16:20:01 +11:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
#
|
2024-08-13 15:47:27 +10:00
|
|
|
# Bonsai is distributed in the hope that it will be useful,
|
2022-01-17 16:20:01 +11:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2024-08-13 15:47:27 +10:00
|
|
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
2022-01-17 16:20:01 +11:00
|
|
|
|
2024-08-14 15:41:52 +05:00
|
|
|
import bonsai.core.patch as subject
|
2022-01-17 16:20:01 +11:00
|
|
|
from test.core.bootstrap import patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestRunMigratePatch:
|
|
|
|
|
def test_run(self, patch):
|
|
|
|
|
patch.run_migrate_patch("infile", "outfile", "schema").should_be_called()
|
2022-01-18 17:47:53 +11:00
|
|
|
subject.run_migrate_patch(patch, infile="infile", outfile="outfile", schema="schema")
|