Skip to content

Commit

Permalink
adapt test to rais error upon empty attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Nov 11, 2024
1 parent 98e15a2 commit 6c05b23
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/unit/test_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,8 @@ def test_empty_attribute_name_returns_empty_string(self):
common_part = ""

# Act
processed_name = process_name(attr_name, common_part)

# Assert
assert processed_name == ""
with pytest.raises(ValueError):
processed_name = process_name(attr_name, common_part)

Check failure on line 105 in tests/unit/test_connect.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F841)

tests/unit/test_connect.py:105:13: F841 Local variable `processed_name` is assigned to but never used

# Empty common part returns processed attribute name without common part.
@pytest.mark.unit
Expand Down

0 comments on commit 6c05b23

Please sign in to comment.