summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-17 14:34:19 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-17 14:34:19 +0200
commit80ab9527573df0585ccfac4f45cc202c473b45a8 (patch)
tree90692edaba636635232223c940ee890a68c4b106
parent5ec3a2b489074e4d184c091d83f24a4f7fafeaca (diff)
Disabling some pylint messages for needed private access in tests.
-rw-r--r--pyproject.toml5
-rw-r--r--tests/test_board.py1
2 files changed, 6 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
index b270154..2058c31 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -24,3 +24,8 @@ source-roots = ["./"]
[tool.pylint.basic]
docstring-min-length = 0
+
+[tool.pylint.messages]
+# Jostain syystä paikallisesti b._Board__tiles privatti tietojen lukemisen
+# aiheuttamaa linttausvirhettä ei voinut disabloida.
+disable = "invalid-name"
diff --git a/tests/test_board.py b/tests/test_board.py
index 4fcd8d3..19795b9 100644
--- a/tests/test_board.py
+++ b/tests/test_board.py
@@ -1,4 +1,5 @@
"""test_board.py - Testit pelilaudalle"""
+# pylint: disable = protected-access
import unittest
from board.board import Board