pytest icon
pytest
Tools Intermediate

Summary#

Experience with pytest for writing and running unit tests, integration tests, and test-driven development in Python projects. Applied testing practices to ensure code quality in research and application development.

How I Apply This Skill#

  • Wrote unit tests for Flask API endpoints in Study Buddy project
  • Created test fixtures for reusable test setup and teardown
  • Used parametrized tests for testing multiple input scenarios
  • Implemented mocking for external API calls and database connections
  • Applied TDD practices writing tests before implementation
  • Integrated pytest with CI/CD pipelines for automated testing

Key Strengths#

  • Test Organization: Test modules, classes, fixtures, conftest.py
  • Assertions: Built-in assertions, custom matchers, exception testing
  • Fixtures: Scope management, dependency injection, teardown
  • Parametrization: Testing multiple inputs with single test function
  • Mocking: unittest.mock, pytest-mock for isolating units
← Back to Skills