@pytest.mark.cmd
@pytest.mark.django_db
def test_revision_restore(capfd):
 call_command('revision', '--restore')
 (out, err) = capfd.readouterr()
 assert out.rstrip().isnumeric()

@ pytest . mark . cmd @ pytest . mark . django_db def test_revision_restore ( capfd ) : call_command ( 'revision' , '--restore' ) ( out , err ) = capfd . readouterr ( ) assert out . rstrip ( ) . isnumeric ( )
restore redis revision from db .