Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Filter by Categories
About Article
Analyze Data
Archive
Best Practices
Better Outputs
Blog
Code Optimization
Code Quality
Command Line
Course
Daily tips
Dashboard
Data Analysis & Manipulation
Data Engineer
Data Visualization
DataFrame
Delta Lake
DevOps
DuckDB
Environment Management
Feature Engineer
Git
Jupyter Notebook
LLM
LLM Tools
Machine Learning
Machine Learning & AI
Machine Learning Tools
Manage Data
MLOps
Natural Language Processing
Newsletter Archive
NumPy
Pandas
Polars
PySpark
Python Helpers
Python Tips
Python Utilities
Scrape Data
SQL
Testing
Time Series
Tools
Visualization
Visualization & Reporting
Workflow & Automation
Workflow Automation

Newsletter #242: Build Faster Test Workflows with pytest Markers

Newsletter #242: Build Faster Test Workflows with pytest Markers


๐Ÿ“… Today’s Picks

Build Faster Test Workflows with pytest Markers

Code example: Build Faster Test Workflows with pytest Markers

Problem

Large projects often contain hundreds of tests, and executing them all for every minor change quickly becomes inefficient.

Solution

Pytest markers let you group tests by type, speed, or resource usage so you can run only what matters for your current task.

Quick guide to pytest markers:

  • Define markers in pytest.ini
  • Tag tests, for example: @pytest.mark.fast
  • Run specific tests: pytest -m fast
  • Skip certain tests: pytest -m “not slow”

๐Ÿ“ข ANNOUNCEMENTS

Production-Ready Data Science Is Now on Leanpub

Production-Ready Data Science Is Now on Leanpub

I am excited to share that Production-Ready Data Science is now live on Leanpub!

On Leanpub, you can choose your price and get updates as more examples and chapters roll out.

This book dives into the real engineering skills behind dependable data systems, including:

  • Testing
  • CI and CD
  • Environments and packaging
  • Data validation and logging
  • Reproducible workflows

If you want to take your data work beyond notebooks and into reliable production environments, this is for you.

โ†’ Get the Book


โ˜•๏ธ Weekly Finds

AutoViz [Data Viz] – Automatically Visualize any dataset, any size with a single line of code

cognee [LLM] – Memory for AI Agents in 6 lines of code

niquests [Python Utils] – Simple, yet elegant, Python HTTP library: a drop-in replacement for python-requests

Looking for a specific tool? Explore 70+ Python tools โ†’

Stay Current with CodeCut

Actionable Python tips, curated for busy data pros. Skim in under 2 minutes, three times a week.

Leave a Comment

Your email address will not be published. Required fields are marked *

0
    0
    Your Cart
    Your cart is empty
    Scroll to Top

    Work with Khuyen Tran

    Work with Khuyen Tran