Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 643 Bytes

README.md

File metadata and controls

28 lines (16 loc) · 643 Bytes

Content of the repository

This repository contains code snippets to demonstrate abilities and usual use of the pytest framework.

Demonstration of Fixture

We demonstrate how to create and use fixtures within the Pytest Framework Code is contained into:

  • pytest_fixture_demo.py

Monkey Patching

Some code here is used to demonstrate monkeypatching abilities

Code is contained into the folder:

  • monkeypatching_demo/

Creating a FTP server fixture

With pyftpdlib, we create a test FTP fixture object. Useful to test code against a FTP server created at runtime.

Demo code is contained into:

  • ftp_fixture_demo.py