GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python_lab/pytest_module at main · anuprshetty/python_lab

Expand file tree

/

pytest_module

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

pytest_module

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.vscode
.vscode
 
 
db
db
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
calculator.py
calculator.py
 
 
requirements.txt
requirements.txt
 
 

README.md

Outline

pytest_module

Python pytest framework.

Requirements

  • Python 3.6

commands

  • pytest
  • pytest -v
  • pytest <test_file>
  • pytest <test_file>:<test_method>
  • pytest -x --> exit when encountered first failed testcase.
  • pytest -s --> show print statements

Notes

Fixtures

  • Pytest fixtures are functions that can be used to manage our apps states and dependencies.
  • Most importantly, they can provide data for testing and a wide range of value types when explicitly called by our testing software.
  • You can use the mock data that fixtures create across multiple tests.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.