Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Automating API Tests with Python

via CodeSignal

Overview

Build reliable API test suites with pytest and requests! Create efficient test cases, leverage fixtures for code reuse, and implement comprehensive coverage for CRUD operations and authentication flows. Catch bugs before production and ensure your APIs remain rock-solid through continuous development.

Syllabus

  • Unit 1: Writing Basic Tests with Pytest
    • Exploring Basic API Test Execution
    • Completing Your First API Test
    • Customizing API Test Requests
    • Creating A New Test
  • Unit 2: Organizing Tests With Classes And Fixtures
    • Complete Your API Test with Fixtures
    • Fix Fixture Setup for Testing
    • Introduce Fixtures to Test Setup
    • Organize Tests with Classes
    • Mastering Testing with Classes and Fixtures
  • Unit 3: Testing CRUD Operations with Setup and Teardown
    • Add Yield for Clean Test Slate
    • Setting Up Your Test Environment
    • Enable Clean Test Execution
    • Fix Test Setup and Teardown
    • Streamline Tests with Pytest Fixture
  • Unit 4: Testing Authenticated Endpoints
    • Test Protected API Endpoint with API Key
    • Implement Session Test Helper and Login
    • Complete Session Authentication Test Suite
    • Test JWT Login Authentication
    • Complete Protected JWT Test Suite

Reviews

Start your review of Automating API Tests with Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.