File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""Initialize PyPI Package"""
2+
23# pylint: disable=locally-disabled, invalid-name, import-error
34
45__all__ = []
Original file line number Diff line number Diff line change 11"""Run widgets from main."""
2+
23# pylint: disable=locally-disabled, invalid-name, import-error
34
45from main import widgets
Original file line number Diff line number Diff line change 1414You should have received a copy of the GNU General Public License
1515along 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
Original file line number Diff line number Diff line change 1414You should have received a copy of the GNU General Public License
1515along 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
Original file line number Diff line number Diff line change 1414You should have received a copy of the GNU General Public License
1515along 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
Original file line number Diff line number Diff line change 11"""Setup file for the Python-Logo-Widgets package."""
2+
23# pylint: disable=locally-disabled, invalid-name, import-error
34
45from setuptools import setup , find_packages
Original file line number Diff line number Diff line change 11"""This is a test file for the Python-Logo-Widgets package."""
2+
23# pylint: disable=locally-disabled, wrong-import-position, import-error
34
45import sys
1213
1314def 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 ()
Original file line number Diff line number Diff line change 1414You should have received a copy of the GNU General Public License
1515along 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
You can’t perform that action at this time.
0 commit comments