Skip to content

Commit e79ca1f

Browse files
committed
Modify clipboard function references
1 parent 9217bfc commit e79ca1f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_cmd2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -697,18 +697,18 @@ def test_pipe_to_shell_error(base_app, capsys):
697697
assert err.startswith("EXCEPTION of type '{}' occurred with message:".format(expected_error))
698698

699699

700-
@pytest.mark.skipif(not cmd2.can_clip,
700+
@pytest.mark.skipif(not cmd2.cmd2.can_clip,
701701
reason="Pyperclip could not find a copy/paste mechanism for your system")
702702
def test_send_to_paste_buffer(base_app):
703703
# Test writing to the PasteBuffer/Clipboard
704704
run_cmd(base_app, 'help >')
705705
expected = normalize(BASE_HELP)
706-
assert normalize(cmd2.get_paste_buffer()) == expected
706+
assert normalize(cmd2.cmd2.get_paste_buffer()) == expected
707707

708708
# Test appending to the PasteBuffer/Clipboard
709709
run_cmd(base_app, 'help history >>')
710710
expected = normalize(BASE_HELP + '\n' + HELP_HISTORY)
711-
assert normalize(cmd2.get_paste_buffer()) == expected
711+
assert normalize(cmd2.cmd2.get_paste_buffer()) == expected
712712

713713

714714
def test_base_timing(base_app, capsys):
@@ -1418,7 +1418,7 @@ def test_multiline_complete_statement_without_terminator(multiline_app):
14181418

14191419
def test_clipboard_failure(capsys):
14201420
# Force cmd2 clipboard to be disabled
1421-
cmd2.disable_clip()
1421+
cmd2.cmd2.disable_clip()
14221422
app = cmd2.Cmd()
14231423

14241424
# Redirect command output to the clipboard when a clipboard isn't present

0 commit comments

Comments
 (0)