-
Notifications
You must be signed in to change notification settings - Fork 2
pytest framework
NaveenS edited this page Apr 19, 2020
·
3 revisions
Pytest is a Python library for testing Python applications. It can be used for all types and levels of software testing
Files - test_*.py or *_test.py files
Functions or Method - test_ prefixed test functions or methods outside of class
Class - Test_ prefixed test classes
Create a .py (sample.py) file with below code
def test_01():
assert 5==6
Execute the code by providing below command in terminal
pytest sample.py