Handshake
Help Docs
Help Docs
  • PyTest
    • ๐ŸšฅTo Begin With
    • Configuration
    • โ“How To
      • ๐ŸงชAssertions
    • ๐ŸŽHow Does
      • ๐Ÿ“‚Structure
      • ๐ŸŽ‹Fixture
Powered by GitBook
On this page
  • Installation
  • Example
  1. PyTest

To Begin With

Installation and setup requirements

NextConfiguration

Last updated 4 months ago

Installation


Please proceed with installation steps as mentioned above, once done. please proceed with the below steps for the simple setup.

Example


Create a new file named: test_sample.py, containing a function, and a test:

# content of test_sample.py
def inc(x):
    return x + 1


def test_answer():
    assert inc(3) == 5
    
def test_simple():
    assert inc(3) == 4

Run your tests now: if the handshake is installed in the working venv. it would auto-invoke this plugin

referred from .

files generated for the report
๐Ÿšฅ
pytest quick example
LogoInstallation | Handshake
Installation steps