Skip to content

Commit

Permalink
Fix bug in the new test
Browse files Browse the repository at this point in the history
  • Loading branch information
mwydmuch committed Jun 19, 2023
1 parent e8d5817 commit 89c2a05
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import vizdoom as vzd


def test_docstrings(object):
def _check_object_docstrings(object):
object_methods = [
method_name
for method_name in dir(object)
Expand All @@ -14,5 +14,9 @@ def test_docstrings(object):
assert method.__doc__ is not None, f"Method {method} has no docstring"


def test_docstrings():
_check_object_docstrings(vzd.DoomGame)


if __name__ == "__main__":
test_docstrings(vzd.DoomGame)
test_docstrings()

0 comments on commit 89c2a05

Please sign in to comment.