|
5 | 5 |
|
6 | 6 | class TestSnippet(unittest.TestCase): |
7 | 7 |
|
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 |
10 | 10 |
|
11 | | - print(f"Testing function - {check_posted_data.__name__} Set 1") |
| 11 | + # print(f"Testing function - {check_posted_data.__name__} Set 1") |
12 | 12 |
|
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]] |
15 | 15 |
|
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]) |
18 | 18 |
|
19 | | - self.assertEqual(result, data[2]) |
| 19 | + # self.assertEqual(result, data[2]) |
20 | 20 |
|
21 | | - print(f"Test data - {data}") |
| 21 | + # print(f"Test data - {data}") |
22 | 22 |
|
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]] |
27 | 27 |
|
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]) |
30 | 30 |
|
31 | | - self.assertEqual(result, data[2]) |
| 31 | + # self.assertEqual(result, data[2]) |
32 | 32 |
|
33 | | - print(f"Test data - {data}") |
| 33 | + # print(f"Test data - {data}") |
34 | 34 |
|
35 | 35 |
|
36 | 36 | if __name__ == "__main__": |
|
0 commit comments