Skip to content

Commit eff7dff

Browse files
authored
Update test_app.py
1 parent db658fb commit eff7dff

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

app/test_app.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,32 @@
55

66
class TestSnippet(unittest.TestCase):
77

8-
def test_check_posted_data_first_set(self):
9-
# testing the check_posted_data method with different input sets
8+
# def test_check_posted_data_first_set(self):
9+
# # testing the check_posted_data method with different input sets
1010

11-
print(f"Testing function - {check_posted_data.__name__} Set 1")
11+
# print(f"Testing function - {check_posted_data.__name__} Set 1")
1212

13-
data_list = [[{"x": 184, "y": 323}, "add", 200], [{"x": 143, "y": 0}, "division", 302], [{"x": 142}, "division",
14-
301]]
13+
# data_list = [[{"x": 184, "y": 323}, "add", 200], [{"x": 143, "y": 0}, "division", 302], [{"x": 142}, "division",
14+
# 301]]
1515

16-
for data in data_list:
17-
result = check_posted_data(data[0], data[1])
16+
# for data in data_list:
17+
# result = check_posted_data(data[0], data[1])
1818

19-
self.assertEqual(result, data[2])
19+
# self.assertEqual(result, data[2])
2020

21-
print(f"Test data - {data}")
21+
# print(f"Test data - {data}")
2222

23-
def test_check_posted_data_second_set(self):
24-
print(f"Testing function - {check_posted_data.__name__} Set 2")
25-
data_list = [[{"x": 184, "y": 323}, "add", 200], [{"x": 143, "y": 0}, "division", 302], [{"y": 143}, "division",
26-
301]]
23+
# def test_check_posted_data_second_set(self):
24+
# print(f"Testing function - {check_posted_data.__name__} Set 2")
25+
# data_list = [[{"x": 184, "y": 323}, "add", 200], [{"x": 143, "y": 0}, "division", 302], [{"y": 143}, "division",
26+
# 301]]
2727

28-
for data in data_list:
29-
result = check_posted_data(data[0], data[1])
28+
# for data in data_list:
29+
# result = check_posted_data(data[0], data[1])
3030

31-
self.assertEqual(result, data[2])
31+
# self.assertEqual(result, data[2])
3232

33-
print(f"Test data - {data}")
33+
# print(f"Test data - {data}")
3434

3535

3636
if __name__ == "__main__":

0 commit comments

Comments
 (0)