Skip to content

Commit b2b1eeb

Browse files
committed
Remove function and test for testing flake8
1 parent 546074e commit b2b1eeb

3 files changed

Lines changed: 2 additions & 25 deletions

File tree

funcs/func.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,5 @@ def sum(x: float, y: float) -> float:
22
return x + y
33

44

5-
# def misformatted_func(
6-
# var1, var2, var3
7-
# ):
8-
# print(var1, var2, var3)
9-
10-
115
def corr_formatted_func(var1, var2, var3):
126
print(var1, var2, var3)

funcs/func_misformatted.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/test_func.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@ class Test(unittest.TestCase):
77
def test_sum(self):
88
self.assertEqual(func.sum(2,3), 5)
99

10-
# Any misformatted functions would not pass flake8 format checks. All related tests would not be executed.
11-
# @patch('funcs.func.misformatted_func')
12-
# def test_misformatted_func(self, mock_misformatted_func):
13-
# func.misformatted_func("one", "two", "three")
14-
# mock_misformatted_func.assert_called_with("one", "two", "three")
15-
16-
@patch('funcs.func.corr_formatted_func')
17-
def test_corr_formatted_func(self, mock_corr_formatted_func):
18-
func.corr_formatted_func("one", "two", "three")
19-
mock_corr_formatted_func.assert_called_with("one", "two", "three")
20-
2110
if __name__ == "__main__":
22-
unittest.main()
11+
unittest.main()
12+

0 commit comments

Comments
 (0)