Python, pandas, Git and testing: what stuck with me
mrneilbryan.substack.com/p/python-pan...
#DataEngineering #Python #pandas #Git #pytest #ContinuousLearning

Need JSON before anything can read your benchmarks. The flags: `pytest-benchmark --benchmark-json=out.json`, `go test -bench . -benchmem -json`, `cargo criterion --message-format=json`, Google Benchmark's `--benchmark_format=json`. Pick one and the pipeline treats all four the same. #pytest…
Right, a benchmark check only verifies what you tell it to. Perfall's gate is exactly that and nothing more: you set the allowed percentage, and the CLI exits non-zero only when a change exceeds it. No claim it measures overall system performance. #benchmarking #CI #pytest #golang
Cheat sheet of benchmark flags that emit machine readable JSON: pytest-benchmark writes JSON, go test takes -bench -benchmem -json, cargo criterion takes --message-format=json, Google Benchmark exports JSON. Parseable output is the part every regression gate builds on. #pytest-benchmark…
Python, pandas, Git and testing: what stuck with me
mrneilbryan.substack.com/p/python-pan...
#DataEngineering #Python #pandas #Git #pytest #ContinuousLearning
Stop mocking external HTTP APIs in tests with fragile patches. This 153-line Python script spins up a real mock server for pytest. Intermediate level. Cuts flaky integration tests. https://www.valtersit.com/python/mock-http-server-for-integration-tests/ #Python #Testing #pytest
Track test coverage and fail builds below 80% with this 123-line pytest script. Generates clean HTML reports for your Python projects. Beginner-friendly, ready to run. https://www.valtersit.com/python/test-coverage-reporter-with-html-output/ #pytest #python #testing