Skip to content

Commit

Permalink
chore: Adding missing migration. It's due to django40
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 authored and zubairshakoorarbisoft committed Jul 25, 2023
1 parent 7eca525 commit aca2191
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions release_util/tests/test_migration_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,25 @@ def test_showmigrations_list(self):

call_command("migrate", "release_util", "0003", verbosity=0)

for fail_on_unapplied, exit_code in (
(True, 1),
(False, 0),
):
self._check_command_output(
cmd="show_unapplied_migrations",
cmd_kwargs={'fail_on_unapplied': fail_on_unapplied},
output={
'database': 'default',
'initial_states': [{'app': 'release_util', 'migration': '0003_third'}],
'migrations': [
{'app': 'release_util', 'migration': '0004_fourth'},
]
},
exit_value=exit_code
)

call_command("migrate", "release_util", "0004", verbosity=0)

for fail_on_unapplied, exit_code in (
(True, 0),
(False, 0),
Expand Down

0 comments on commit aca2191

Please sign in to comment.