Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/poetry' into poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
Alina Voilova committed Nov 15, 2023
2 parents 1cac21e + 49d4e95 commit 81aa5a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ markers =
pythonpath = ./tests

[bdist_wheel]
universal = 1
universal = 1
8 changes: 6 additions & 2 deletions tests/core/pfstate/test_pfstate_excelclipboard.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""Test if portfolio line can be exported."""


import pytest
import portfolyo as pf
import pandas as pd


def test_pfstate_toexcel():
Expand All @@ -13,4 +14,7 @@ def test_pfstate_toexcel():
def test_pfstate_toclipboard():
"""Test if data can be copied to clipboard."""
pfs = pf.dev.get_pfstate()
pfs.to_clipboard()
try:
pfs.to_clipboard()
except pd.errors.PyperclipException:
pytest.skip("Clipboard not available on all systems.")

0 comments on commit 81aa5a4

Please sign in to comment.