Skip to content

Commit 98ae813

Browse files
Merge pull request #99 from willtheorangeguy/deepsource-transform-0effb411
2 parents d2d99ed + cd81d59 commit 98ae813

8 files changed

Lines changed: 13 additions & 7 deletions

File tree

__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Initialize PyPI Package"""
2+
23
# pylint: disable=locally-disabled, invalid-name, import-error
34

45
__all__ = []

__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Run widgets from main."""
2+
23
# pylint: disable=locally-disabled, invalid-name, import-error
34

45
from main import widgets

length.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
"""
17+
1718
# pylint: disable=locally-disabled, invalid-name, import-error
1819

1920
# Import Statements

logo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
"""
17+
1718
# pylint: disable=locally-disabled, invalid-name, import-error
1819

1920
# Import Statements

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
"""
17+
1718
# pylint: disable=locally-disabled, invalid-name, import-error
1819

1920
# Import Statements

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Setup file for the Python-Logo-Widgets package."""
2+
23
# pylint: disable=locally-disabled, invalid-name, import-error
34

45
from setuptools import setup, find_packages

tests/test_main.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This is a test file for the Python-Logo-Widgets package."""
2+
23
# pylint: disable=locally-disabled, wrong-import-position, import-error
34

45
import sys
@@ -12,13 +13,11 @@
1213

1314
def test_widgets():
1415
"""Test the widgets function."""
15-
with unittest.mock.patch(
16-
"main.logo_widget"
17-
) as mock_logo_widget, unittest.mock.patch(
18-
"main.length_widget"
19-
) as mock_length_widget, unittest.mock.patch(
20-
"main.width_widget"
21-
) as mock_width_widget:
16+
with (
17+
unittest.mock.patch("main.logo_widget") as mock_logo_widget,
18+
unittest.mock.patch("main.length_widget") as mock_length_widget,
19+
unittest.mock.patch("main.width_widget") as mock_width_widget,
20+
):
2221
main.widgets()
2322
mock_logo_widget.assert_called_once()
2423
mock_length_widget.assert_called_once()

width.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
"""
17+
1718
# pylint: disable=locally-disabled, invalid-name, import-error
1819

1920
# Import Statements

0 commit comments

Comments
 (0)