Skip to content

Commit

Permalink
all tests are paasing, review changes by !ATTN
Browse files Browse the repository at this point in the history
  • Loading branch information
Alina Voilova committed Sep 16, 2024
1 parent fb4397e commit 664c5e4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/core/pfline/test_pfline_arithmatic_kind_and_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,12 @@ def do_kind_test(testcase: Case, operation: str):
pfl = testcase.pfl
value = testcase.value
expected = testcase.expected_result

# !ATTN :new block
if isinstance(value, float):
pytest.skip(
"It's impossible to create a PfLine with the provided data. Ensure that provided data has a unit."
)
elif isinstance(value, dict):
if isinstance(value, dict):
if any(isinstance(value, float) for value in value.values()):
pytest.skip(
"It's impossible to create a PfLine with the provided data. Ensure that provided data has a unit."
Expand All @@ -646,10 +646,11 @@ def do_kind_test(testcase: Case, operation: str):
"It's impossible to create a PfLine with the provided data. Ensure that provided data has a unit."
)

elif isinstance(value, pd.Series) and pd.api.types.is_float_dtype(value):
pytest.skip(
"It's impossible to create a PfLine with the provided data. Ensure that provided data has a unit."
)
if isinstance(value, pd.Series):
if any(isinstance(x, float) for x in value):
pytest.skip(
"It's impossible to create a PfLine with the provided data. Ensure that provided data has a unit."
)
if isinstance(value, pd.DataFrame) and any(
pd.api.types.is_float_dtype(value[col]) for col in value.columns
):
Expand Down

0 comments on commit 664c5e4

Please sign in to comment.