From 80ab9527573df0585ccfac4f45cc202c473b45a8 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Wed, 17 Jan 2024 14:34:19 +0200 Subject: Disabling some pylint messages for needed private access in tests. --- pyproject.toml | 5 +++++ tests/test_board.py | 1 + 2 files changed, 6 insertions(+) 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 -- cgit v1.2.3