Code Monkey home page Code Monkey logo

pytest-mastery-with-django's Introduction

veryacademy

Python Pytest and Django Course

Learn how to implement Pytest with Django
Pytest is a mature full-featured Python testing tool that ultimately helps you write better programs, in this course we integrate Pytest with the Django Framework for testing our Django applications.

Please join our active, growing community:
Website (Coming Soon) | Twitter | YouTube

Aims of this course

The aims of this course is to:

  • learn how to test Django applications with Pytest Testing Framework

Course Introduction

Learn how to implement Pytest with Django. Welcome to testing Django applications with Pytest course. Pytest is a mature full-featured Python testing tool that ultimately helps you write better programs, in this course we integrate Pytest with the Django Framework for testing our Django applications.

We'll teach you how to get started testing with Pytest and Django, normally a topic reserved for advanced uses. I try to simply and present the materials with a practical approach to engage a wider audience and level of knowledge. Here are just a few topics we will be learning:

  • Pytest Installation
  • Fixtures
  • Markers
  • Parametrize
  • Skip, xfail
  • Pytest.ini
  • Pytest-django
  • Coverage
  • pytest-xdist
  • much more...

Tutorials

This course is hosted on YouTube, the full YouTube playlist can be found here on our YouTube channel.

Prerequisites

  • Python installed
  • Some Django experience

Who is this course for

New developers who are interested in writing tests with Pytest, new Python Django developers, Python Django enthusiasts, students and anyone we have missed.

Course Content

Part-1 Pytest | Django | Gentle Introduction, Setup and Start Testing
Pytest is a popular python test automation framework. Here we look at getting started with Pytest and Django. In this tutorial we Start a new Django project then Setup Django-Pytest. At this point we take a look at some simple examples covering topics such as Assert Statements, Running tests Testing outcomes and Report options. We also take a look at Pytest Marks and look at how to utilise Coverage to identify where tests are needed in our application.

Part-2 Pytest | Django | Introducing Fixtures and Fixture Factory
Pytest is a popular python test automation framework. Here we look at getting started with Pytest fixtures with Python Django. In this tutorial we continue to explore Pytest, specifically focusing Pytest fixtures. We build a range of different simple examples using Fixtures, moving to using fixtures external to our test files. The final stage, we build an example of factory as a fixture and showcase the flexibility that if offers in our testing.

Part-3 Pytest | Django | Introducing Factory Boy and Faker - Fixture Replacement
Pytest is a popular python test automation framework. Here we look at replacing Pytest fixtures with Factory Boy in a Python Django project. Factory Boy as a fixtures replacement tool, it aims to replace static, hard to maintain fixtures with easy-to-use factories for complex objects. In this tutorial we intergrade Factory boy into our small app and take a look at some of the more common features.

Link to Tutorial https://youtu.be/qrvqNdCDKjM

Part-4 Pytest | Django | Parametrizing Pytest is a popular python test automation framework. Here we look at Parametrizing Fixtures and Test Functions with Pytest in a Django project. A useful feature of Pytest, parametrization allows us to define multiple sets of arguments and fixtures at the test function or class. Although pytest enables test parametrization at several levels, in this tutorial we get started by working through an example of a test function that implements parametrization checking multiple input leads to the expected output.



Link to Tutorial https://youtu.be/APhI43fyRHI

Part-5 Pytest | Selenium | Python Django - Intro Testing with Pytest, Selenium and Django In this Pytest, Selenium tutorial we consolidate knowledge learnt from the Pytest and Selenium tutorial series and in introduce working with Selenium within a Pytest testing environment. Some underpinning knowledge is provided, but it is expected that you have watched the first tutorials in both the Pytest and Selenium series to grasp the full potential of this tutorial.



Link to Tutorial https://youtu.be/o_rubsSu-Ds

Part-6 Pytest | Selenium | Python Django - Automating Screenshots In this Pytest, Selenium tutorial we consolidate knowledge learnt from the Pytest and Selenium tutorial series and introduce working with Selenium - automating the process of taking screenshots of our application.



Link to Tutorial https://youtu.be/SWBytYYVINE

Future Content

List of features requested by community. If you would like to request any tutorials for this course - please visit our YouTube channel and ask in the comments.

Next Planned Tutorials

  • More coming soon

Instructor

Zander

Contributing

This project welcomes contributions and suggestions. Please visit our YouTube channel to make contributions.

License

MIT License

pytest-mastery-with-django's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.