Skip to content

Commit

Permalink
fixed pfline_excelclipboad.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Alina Voilova committed Nov 17, 2023
1 parent 81aa5a4 commit 047807b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/core/pfline/test_pfline_excelclipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pytest

import portfolyo as pf
import pandas as pd


@pytest.mark.parametrize("levels", [1, 2, 3])
Expand All @@ -16,4 +17,7 @@ def test_pfline_toexcel(levels: int):
def test_pfline_toclipboard(levels: int):
"""Test if data can be copied to clipboard."""
pfl = pf.dev.get_pfline(nlevels=levels)
pfl.to_clipboard()
try:
pfl.to_clipboard()
except pd.errors.PyperclipException:
pytest.skip("Clipboard not available on all systems.")

0 comments on commit 047807b

Please sign in to comment.