Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Initialize PyPI Package"""

# pylint: disable=locally-disabled, invalid-name, import-error

__all__ = []
1 change: 1 addition & 0 deletions __main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Run widgets from main."""

# pylint: disable=locally-disabled, invalid-name, import-error

from main import widgets
Expand Down
1 change: 1 addition & 0 deletions length.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# pylint: disable=locally-disabled, invalid-name, import-error

# Import Statements
Expand Down
1 change: 1 addition & 0 deletions logo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# pylint: disable=locally-disabled, invalid-name, import-error

# Import Statements
Expand Down
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# pylint: disable=locally-disabled, invalid-name, import-error

# Import Statements
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Setup file for the Python-Logo-Widgets package."""

# pylint: disable=locally-disabled, invalid-name, import-error

from setuptools import setup, find_packages
Expand Down
13 changes: 6 additions & 7 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This is a test file for the Python-Logo-Widgets package."""

# pylint: disable=locally-disabled, wrong-import-position, import-error

import sys
Expand All @@ -12,13 +13,11 @@

def test_widgets():
"""Test the widgets function."""
with unittest.mock.patch(
"main.logo_widget"
) as mock_logo_widget, unittest.mock.patch(
"main.length_widget"
) as mock_length_widget, unittest.mock.patch(
"main.width_widget"
) as mock_width_widget:
with (
unittest.mock.patch("main.logo_widget") as mock_logo_widget,
unittest.mock.patch("main.length_widget") as mock_length_widget,
unittest.mock.patch("main.width_widget") as mock_width_widget,
):
main.widgets()
mock_logo_widget.assert_called_once()
mock_length_widget.assert_called_once()
Expand Down
1 change: 1 addition & 0 deletions width.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# pylint: disable=locally-disabled, invalid-name, import-error

# Import Statements
Expand Down
Loading