def test_all_migrations_main():
    """Testing migraions for a single app only."""
    main_migrations = all_migrations('default', ['main_app'])

    assert nodes_to_tuples(main_migrations) == [
        ('main_app', '0001_initial'),
        ('main_app', '0002_someitem_is_clean'),
        ('main_app', '0003_update_is_clean'),
        ('main_app', '0004_auto_20191119_2125'),
    ]
def test_all_migrations_auth():
    """Testing migraions for a builtin app."""
    auth_migrations = all_migrations('default', ['auth'])
    assert len(auth_migrations) >= 10
def test_all_migrations_all():
    """Testing migraions for all apps."""
    assert len(all_migrations()) >= 17  # noqa: WPS432
def test_all_migrations_missing():
    """Testing migraions for a missing app."""
    with pytest.raises(LookupError):
        all_migrations('default', ['missing_app'])