Skip to content

Commit

Permalink
Fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLooman committed Dec 16, 2023
1 parent 12564ff commit 2b0d7f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[BASIC]
good-names=otherItem, storageMedium
4 changes: 2 additions & 2 deletions tests/test_didl_lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,15 +642,15 @@ def test_property_case(self) -> None:
assert not hasattr(item, "otherItem")
assert not hasattr(item, "other_item")

item.storageMedium = "CD" # pylint: disable=invalid-name
item.storageMedium = "CD"
assert item.storage_medium is item.storageMedium
assert item.storage_medium == "CD"

item.long_description = "Long description"
assert item.long_description is item.longDescription
assert item.long_description == "Long description"

item.otherItem = "otherItem" # pylint: disable=invalid-name
item.otherItem = "otherItem"
assert hasattr(item, "otherItem")
assert not hasattr(item, "other_item")
assert item.otherItem == "otherItem"

0 comments on commit 2b0d7f0

Please sign in to comment.