import copy

import abjad


def test_Staff___copy___01():
    """
    Staves (shallow) copy grob overrides and context settings but not
    components.
    """

    staff_1 = abjad.Staff("c'8 d'8 e'8 f'8")
    abjad.override(staff_1).NoteHead.color = "#red"
    abjad.setting(staff_1).tupletFullLength = True

    staff_2 = copy.copy(staff_1)

    assert abjad.lilypond(staff_2) == abjad.string.normalize(
        r"""
        \new Staff
        \with
        {
            \override NoteHead.color = #red
            tupletFullLength = ##t
        }
        {
        }
        """
    )
