Skip to content

Idea-Pool/evaluation-py-pytest-requests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

evaluation-py-pytest-requests

This is a test-ware to evaluate the Pytest automation tool with Python and requests library.

Prerequisites

In order to execute the implemented test cases, an account is needed on the https://www.themoviedb.org/. If the account is created the API Key (v3 auth) should be added to the constants instead of the {YOUR_API_KEY} as a string.

  1. Python 3.8+
  2. Pip
  3. pytest 6.1.2
  4. requests 2.25.0

Framework used

Framework Documentation
pytest pytest is a framework that makes building simple and scalable tests easy.
requests Requests is a simple, yet elegant HTTP library.

Test cases

The implemented test cases can be found in API.md.

Setup

pip install -r requirements.txt

Execution

To execute all the test cases:

pytest

To execute one test module:

pytest test/test_get.py::TestGetMethod

To execute one test function:

pytest test/test_get.py::TestGetMethod::test_get_status_code

To log the information during the execution, the following command can be used:

pytest --log-level=INFO -s

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages