Skip to content

Commit 56704be

Browse files
Python Tests Run
1 parent ada03d5 commit 56704be

File tree

5 files changed

+33
-0
lines changed

5 files changed

+33
-0
lines changed

Python Tests/Readme.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Running a Sample Python Test Script
2+
3+
- Clone This Repo
4+
- Run ```python -m unittest test_unittest.py``` in terminal
5+
6+
<img width="613" alt="image" src="https://user-images.githubusercontent.com/100597998/181876483-6a73bee0-b131-4f72-892b-94366182efb9.png">
Binary file not shown.
Binary file not shown.

Python Tests/test_unittest.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import unittest as ut
2+
3+
class Test_TestPython(ut.TestCase):
4+
def test_python(self):
5+
self.assertEqual(4, 4)
6+
7+
def test_another(self):
8+
self.assertEqual(100, 100)
9+
10+
def test_krishna(self):
11+
self.assertEqual(200, 67)
12+
13+
if __name__ == '__main__':
14+
ut.main()

Python Tests/test_unittest1.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import unittest as ut
2+
3+
class Test_TestPython(ut.TestCase):
4+
def test_python(self):
5+
self.assertEqual(4, 4)
6+
7+
def test_another(self):
8+
self.assertEqual(100, 100)
9+
10+
def test_krishna(self):
11+
self.assertEqual(200, 67)
12+
def test_krishna1(self):
13+
self.assertEqual(200, 67)

0 commit comments

Comments
 (0)