# Pytest

pytest is a Python testing framework for writing tests and performing functional testing of applications and libraries.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## How to Set Up a Python Project for Agentic Coding

DevFeed: [How to Set Up a Python Project for Agentic Coding](<https://devfeed.tech/articles/how-to-set-up-a-python-project-for-agentic-coding-136305.md>)

Original publisher: [Read original article](<https://realpython.com/python-project-for-agentic-coding/>)

Author: Isabel Zimmerman

Published: 2026-11-16T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Python](<https://devfeed.tech/topics/python.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [project layout](<https://devfeed.tech/topics/project-layout.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-coding](<https://devfeed.tech/tags/agentic-coding.md>), [agents](<https://devfeed.tech/tags/agents.md>), [agents-md](<https://devfeed.tech/tags/agents-md.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-assistants](<https://devfeed.tech/tags/ai-assistants.md>), [ai-coding](<https://devfeed.tech/tags/ai-coding.md>), [ai-coding-agents](<https://devfeed.tech/tags/ai-coding-agents.md>), [ai-coding-assistant](<https://devfeed.tech/tags/ai-coding-assistant.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [hooks](<https://devfeed.tech/tags/hooks.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [project](<https://devfeed.tech/tags/project.md>), [python](<https://devfeed.tech/tags/python.md>), [tests](<https://devfeed.tech/tags/tests.md>), [types](<https://devfeed.tech/tags/types.md>)

### AI overview

A Python project can give coding agents clear, repeatable feedback by encoding expectations in its structure and tools. The tutorial starts with `uv init --package` and Git, then configures Ruff for linting and formatting, strict mypy checks, and `pytest` with a 90% coverage gate. Pre-commit hooks run selected checks before commits; failures give agents actionable feedback, though lint and type errors still need correction. A concise `AGENTS.md` documents workflows and conventions automation cannot enforce, while `.env` stays ignored and `.env.example` records required variables. Tool support for agent instruction files varies, but the automated project setup is described as tool agnostic. The article recommends keeping guidance consistent with enforced settings and breaking large changes into smaller tasks.

### Source excerpt

Learn how to set up a Python project for agentic coding, with the tests, types, and hooks that give AI coding agents fast feedback.

## I Mutation-Tested 50 Python Libraries. Tests in the Young Ones Missed 41% of Planted Faults.

DevFeed: [I Mutation-Tested 50 Python Libraries. Tests in the Young Ones Missed 41% of Planted Faults.](<https://devfeed.tech/articles/i-mutation-tested-50-python-libraries-tests-in-the-young-ones-missed-41-of-planted-faults-130835.md>)

Original publisher: [Read original article](<https://towardsdatascience.com/i-mutation-tested-50-python-libraries-tests-in-the-young-ones-missed-41-of-planted-faults/>)

Author: Gal Arav

Published: 2026-11-12T15:00:00Z

Content type: article

Language: en

Sources: [Towards Data Science](<https://devfeed.tech/sources/towards-data-science.md>)

Topics: [mutation-testing](<https://devfeed.tech/topics/mutation-testing.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [acceptance](<https://devfeed.tech/tags/acceptance.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-skill](<https://devfeed.tech/tags/agent-skill.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-assistant](<https://devfeed.tech/tags/ai-assistant.md>), [ai-development](<https://devfeed.tech/tags/ai-development.md>), [ai-testing](<https://devfeed.tech/tags/ai-testing.md>), [bug](<https://devfeed.tech/tags/bug.md>), [data-loss](<https://devfeed.tech/tags/data-loss.md>), [editor-s-picks](<https://devfeed.tech/tags/editor-s-picks.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [llm-engineering](<https://devfeed.tech/tags/llm-engineering.md>), [mutation](<https://devfeed.tech/tags/mutation.md>), [python](<https://devfeed.tech/tags/python.md>), [python-libraries](<https://devfeed.tech/tags/python-libraries.md>), [quality-assessment](<https://devfeed.tech/tags/quality-assessment.md>), [readme](<https://devfeed.tech/tags/readme.md>), [software-testing](<https://devfeed.tech/tags/software-testing.md>), [study](<https://devfeed.tech/tags/study.md>), [tests](<https://devfeed.tech/tags/tests.md>), [windows](<https://devfeed.tech/tags/windows.md>)

### AI overview

Mutation testing of 50 active Python libraries found that tests missed 41% of planted faults in 30 young libraries and 17% in 20 mature libraries. Across 2,312 planted faults, the study also identified four real library problems, confirmed by hand and reported to maintainers. A missed mutant is only a lead: some changes are unobservable, and the method cannot reveal behavior absent from the code. The article's workflow plants faults, runs the existing suite, and turns misses into questions about intended behavior. Documentation and signatures can help an LLM draft answers, but coverage was limited (about 1 in 4 questions for mature libraries, 1 in 15 for young ones), and checked drafts were often wrong, especially for young libraries. The author recommends human review of answers before generating tests. In qikly, step 1 is free; steps 2 and 3 use Gemini, Anthropic, or OpenAI APIs and require a key. A Skill can convey practices to an assistant, while the local MCP server withholds acceptance criteria from the coding agent.

### Source excerpt

Across 2,312 planted faults the study also surfaced four real library problems, from a Windows data-loss bug to README examples that do not work as written. The post I Mutation-Tested 50 Python Libraries. Tests in the Young Ones Missed 41% of Planted Faults. appeared first on Towards Data Science.

## wireskein takes logic analyzer captures and turns them into automated tests

DevFeed: [wireskein takes logic analyzer captures and turns them into automated tests](<https://devfeed.tech/articles/wireskein-takes-logic-analyzer-captures-and-turns-them-into-automated-tests-121615.md>)

Original publisher: [Read original article](<https://blog.adafruit.com/2026/11/06/wireskein-takes-logic-analyzer-captures-and-turns-them-into-automated-tests/>)

Author: Anne Barela

Published: 2026-11-06T20:34:39Z

Content type: article

Language: en

Sources: [Adafruit Industries](<https://devfeed.tech/sources/adafruit-industries-makers-hackers-artists-designers-and-engineers.md>)

Topics: [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>)

Tags: [adc](<https://devfeed.tech/tags/adc.md>), [analog](<https://devfeed.tech/tags/analog.md>), [automated](<https://devfeed.tech/tags/automated.md>), [beta](<https://devfeed.tech/tags/beta.md>), [browser](<https://devfeed.tech/tags/browser.md>), [conversion](<https://devfeed.tech/tags/conversion.md>), [history](<https://devfeed.tech/tags/history.md>), [i2c](<https://devfeed.tech/tags/i2c.md>), [logic-analyzer](<https://devfeed.tech/tags/logic-analyzer.md>), [mit](<https://devfeed.tech/tags/mit.md>), [numpy](<https://devfeed.tech/tags/numpy.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [programming](<https://devfeed.tech/tags/programming.md>), [pytest](<https://devfeed.tech/tags/pytest.md>), [python](<https://devfeed.tech/tags/python.md>), [sigrok](<https://devfeed.tech/tags/sigrok.md>), [software](<https://devfeed.tech/tags/software.md>), [spi](<https://devfeed.tech/tags/spi.md>), [tests](<https://devfeed.tech/tags/tests.md>), [wireskein](<https://devfeed.tech/tags/wireskein.md>)

### AI overview

WireSkein turns logic analyzer captures into automated checks for square waves, levels, edges, pulse counts, and I2C, SPI, and UART. Tests record a run and verify it; checks that cannot be made because required pins are absent are marked unchecked and fail the run by default. A pytest plugin records tests and runs verification afterward. Its .wireskein zip format preserves each channel's sample rate, including analog channels with raw ADC values. Sigrok .sr conversion works block by block, limiting memory use for large streams. The package includes a browser viewer; it requires Python 3.11 or newer, depends only on numpy, is MIT licensed, and is in beta.

### Source excerpt

WireSkein, from Open Embedded Probe on GitHub, takes logic analyzer captures and turns them into automated tests. Instead of a person squinting at a waveform, the code checks whether the wire did what it was supposed to do. It's MIT licensed, needs Python 3.11 or newer, and numpy is the only dependency. A test records [...]

## Property-based testing: How to find bugs your unit tests miss

DevFeed: [Property-based testing: How to find bugs your unit tests miss](<https://devfeed.tech/articles/property-based-testing-how-to-find-bugs-your-unit-tests-miss-119748.md>)

Original publisher: [Read original article](<https://circleci.com/blog/property-based-testing/>)

Author: Jacob Schmitt

Published: 2026-11-05T16:00:00Z

Content type: tutorial

Language: en

Sources: [CircleCI](<https://devfeed.tech/sources/the-circleci-blog-feed-circleci.md>)

Topics: [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [bugfixes](<https://devfeed.tech/topics/bugfixes.md>), [Fuzzing/Fuzz testing](<https://devfeed.tech/topics/fuzzing.md>), [mutation-testing](<https://devfeed.tech/topics/mutation-testing.md>)

Tags: [bugs](<https://devfeed.tech/tags/bugs.md>), [ci](<https://devfeed.tech/tags/ci.md>), [circleci](<https://devfeed.tech/tags/circleci.md>), [hypothesis](<https://devfeed.tech/tags/hypothesis.md>), [property-based-testing](<https://devfeed.tech/tags/property-based-testing.md>), [property-based-testing-examples](<https://devfeed.tech/tags/property-based-testing-examples.md>), [property-based-testing-in-ci-cd](<https://devfeed.tech/tags/property-based-testing-in-ci-cd.md>), [property-based-testing-python](<https://devfeed.tech/tags/property-based-testing-python.md>), [property-based-testing-tools](<https://devfeed.tech/tags/property-based-testing-tools.md>), [property-based-testing-vs-unit-testing](<https://devfeed.tech/tags/property-based-testing-vs-unit-testing.md>), [python](<https://devfeed.tech/tags/python.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

Property-based testing checks general behavioral rules across automatically generated inputs, helping expose edge cases missed by hand-picked unit tests. In the Python example, Hypothesis tests whether a query normalizer is idempotent; generated inputs reveal that replacing pairs of spaces once leaves longer runs partly uncollapsed. Shrinking reduces the failure to "a a." Replacing that logic with a regular expression that collapses each run of spaces fixes the example; a regression unit test preserves it. Property tests complement unit tests, since a property such as idempotence alone does not prove output correctness. They work best for functions with clear requirements and controllable dependencies, and depend on choosing meaningful properties and relevant input strategies. More generated examples increase exploration and execution cost. The document shows pytest and Hypothesis running in CircleCI, where failures report counterexamples; it recommends bounded pull-request runs and retaining important failures as reproducible tests.

### Source excerpt

Learn how property-based testing finds hidden bugs with generated inputs. Follow a practical Python example using Hypothesis and automate testing in CI.

## Python 3.15 Ships and Other Python News for November 2026

DevFeed: [Python 3.15 Ships and Other Python News for November 2026](<https://devfeed.tech/articles/python-3-15-ships-and-other-python-news-for-november-2026-112521.md>)

Original publisher: [Read original article](<https://realpython.com/python-news-november-2026/>)

Author: Martin Breuss

Published: 2026-11-02T14:00:00Z

Content type: news

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [pip](<https://devfeed.tech/topics/pip.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Claude](<https://devfeed.tech/topics/claude.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [2-0-0](<https://devfeed.tech/tags/2-0-0.md>), [2015](<https://devfeed.tech/tags/2015.md>), [2022](<https://devfeed.tech/tags/2022.md>), [2026](<https://devfeed.tech/tags/2026.md>), [22](<https://devfeed.tech/tags/22.md>), [64-bit](<https://devfeed.tech/tags/64-bit.md>), [about](<https://devfeed.tech/tags/about.md>), [account](<https://devfeed.tech/tags/account.md>), [anthropic](<https://devfeed.tech/tags/anthropic.md>), [ca](<https://devfeed.tech/tags/ca.md>), [keys](<https://devfeed.tech/tags/keys.md>), [news](<https://devfeed.tech/tags/news.md>), [none](<https://devfeed.tech/tags/none.md>), [november-2026](<https://devfeed.tech/tags/november-2026.md>), [operators](<https://devfeed.tech/tags/operators.md>), [python](<https://devfeed.tech/tags/python.md>), [python-3-15](<https://devfeed.tech/tags/python-3-15.md>), [releases](<https://devfeed.tech/tags/releases.md>), [security](<https://devfeed.tech/tags/security.md>), [temperature](<https://devfeed.tech/tags/temperature.md>)

### AI overview

Python 3.15 shipped October 9 with unpacking in comprehensions and Tachyon, a low-overhead sampling profiler that can attach to running processes. Python 3.16's first alpha followed, while draft PEPs propose `?.` and `??` operators that remain under debate. A security flaw in eight eMudhra intermediate certificate keys prompted layered fixes: update Python, `pip` and `certifi` in each environment, and `uv` on each machine; newer Python releases also block the compromised keys during TLS verification. The article also highlights breaking ecosystem changes: Polars 2.0's streaming engine may change row order, and Anthropic's new API rejects sampling parameters such as `temperature`. It includes upgrade guidance and notes Python 3.10's end of security support.

### Source excerpt

Python 3.15 ships, 3.16 eyes None-aware operators, eight broken CA keys trigger security releases, and Anthropic drops temperature.

## If in doubt, delete the uv.lock file

DevFeed: [If in doubt, delete the uv.lock file](<https://devfeed.tech/articles/if-in-doubt-delete-the-uv-lock-file-111030.md>)

Original publisher: [Read original article](<https://simonwillison.net/2026/Nov/1/delete-uv-lock-first/>)

Author: Simon Willison

Published: 2026-11-01T23:24:22Z

Content type: article

Language: en

Sources: [Simon Willison's Weblog](<https://devfeed.tech/sources/simon-willison-s-weblog.md>)

Topics: [Pytest](<https://devfeed.tech/topics/pytest.md>), [versioning](<https://devfeed.tech/topics/versioning.md>), [Error Handling](<https://devfeed.tech/topics/error-handling.md>)

Tags: [pytest](<https://devfeed.tech/tags/pytest.md>), [python](<https://devfeed.tech/tags/python.md>), [python-1-293](<https://devfeed.tech/tags/python-1-293.md>), [python-3-15](<https://devfeed.tech/tags/python-3-15.md>), [til](<https://devfeed.tech/tags/til.md>), [til-27](<https://devfeed.tech/tags/til-27.md>), [uv](<https://devfeed.tech/tags/uv.md>), [uv-103](<https://devfeed.tech/tags/uv-103.md>)

### AI overview

The author's practical rule for a confusing Python 3.15 dependency build error is to delete the local `uv.lock` file and rerun `uv run pytest`; this usually resolves it. The lockfile can pin a dependency version without a Python 3.15 wheel. The example is `watchfiles==1.1.1`, whose build fails because PyO3 supports Python only through 3.14. The author says their library repositories generally omit committed lockfiles, but `uv run` can leave ignored `uv.lock` files behind.

### Source excerpt

I've been getting the occasional confusing Python dependency error since switching over to Python 3.15 and the rule I'm having to remember is: If in doubt, delete the uv.lock file Most of my projects are libraries which don't include a uv.lock file, since it's rude for a library dependency to lock versions for anything else that uses it. Running uv run pytest etc tends to leave uv.lock files lying around, which are listed in .gitignore and so do not get committed to my repositories. But... sometimes that uv.lock pins a version of a dependency that doesn't yet have a Python 3.15 wheel. An example from earlier today: error: Failed to build `watchfiles==1.1.1` cause: Call to `maturin.build_wheel` failed error: the configured Python interpreter version (3.15) is newer than PyO3's maximum supported version (3.14) Deleting that file and running uv run pytest again usually fixes the problem. Tags: uv, til, python

## Python's with Statement: Manage External Resources Safely

DevFeed: [Python's with Statement: Manage External Resources Safely](<https://devfeed.tech/articles/python-s-with-statement-manage-external-resources-safely-99152.md>)

Original publisher: [Read original article](<https://realpython.com/python-with-statement/>)

Author: Leodanis Pozo Ramos

Published: 2026-10-25T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Boilerplate](<https://devfeed.tech/topics/boilerplate.md>)

Tags: [python](<https://devfeed.tech/tags/python.md>), [resource-management](<https://devfeed.tech/tags/resource-management.md>), [resources](<https://devfeed.tech/tags/resources.md>), [safely](<https://devfeed.tech/tags/safely.md>), [with](<https://devfeed.tech/tags/with.md>)

### AI overview

Python's `with` statement calls a context manager's `.__enter__()` on entry and `.__exit__()` on exit, so cleanup runs even when the block raises an exception. This makes common setup and teardown--such as opening and closing files or acquiring and releasing locks--more concise and less error-prone than repeating `try` ... `finally`. The article contrasts the approaches: `try` ... `finally` works with any object but is more verbose; `with` requires an object that implements the context manager protocol. It also covers multiple managers, standard-library and pytest examples, and custom class-based or `contextlib.contextmanager` implementations. For asynchronous code, `async with` uses awaitable `.__aenter__()` and `.__aexit__()` methods; the tutorial demonstrates this with `aiohttp`.

### Source excerpt

Understand Python's with statement and context managers to streamline the setup and teardown phases in resource management. Start writing safer code today!

## Top 50 Python Automation Interview Questions for DevOps & SRE Engineers in 2026

DevFeed: [Top 50 Python Automation Interview Questions for DevOps & SRE Engineers in 2026](<https://devfeed.tech/articles/top-50-python-automation-interview-questions-for-devops-sre-engineers-in-2026-88484.md>)

Original publisher: [Read original article](<https://blog.devops.dev/top-50-python-automation-interview-questions-for-devops-sre-engineers-in-2026-2ff6f10aca32?source=rss----33f8b2d9a328---4>)

Author: Arvind Verma

Published: 2026-10-16T09:12:17Z

Content type: tutorial

Language: en

Sources: [DevOps.dev](<https://devfeed.tech/sources/devops-dev.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [DevOps](<https://devfeed.tech/topics/devops.md>), [Production Engineering](<https://devfeed.tech/topics/production-engineering.md>), [health check](<https://devfeed.tech/topics/health-check.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [client library](<https://devfeed.tech/topics/client-library.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [CI/CD Pipeline](<https://devfeed.tech/topics/ci-cd-pipeline.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [iteration](<https://devfeed.tech/topics/iteration.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [ai](<https://devfeed.tech/tags/ai.md>), [automation](<https://devfeed.tech/tags/automation.md>), [aws](<https://devfeed.tech/tags/aws.md>), [devops](<https://devfeed.tech/tags/devops.md>), [docker](<https://devfeed.tech/tags/docker.md>), [interview](<https://devfeed.tech/tags/interview.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [python](<https://devfeed.tech/tags/python.md>), [sre](<https://devfeed.tech/tags/sre.md>)

### AI overview

The excerpt shows Python automation interviews for DevOps and SRE roles emphasizing safe operational work over syntax alone. It recommends `subprocess.run()` to execute Linux commands and capture output and return codes; the larger supplied text adds `check=True` or explicit status checks and timeouts so scripts can stop or handle failures. Practical examples include checking disk usage, using `pathlib`, handling configuration and JSON or YAML, logging, and connecting to AWS with Boto3 or Kubernetes through its Python client. The article repeatedly stresses safeguards for production work: avoid hardcoded credentials, filter and validate before destructive actions, use bounded retries for transient failures, make workflows idempotent, and test external integrations without modifying real infrastructure. The supplied excerpt focuses on the first Linux automation question, while the remaining questions are present in the larger source text.

### Source excerpt

Python automation interviews in 2026 are moving far beyond syntax. Knowing lists, dictionaries, loops and functions is useful. But in a DevOps or SRE interview, the interviewer usually wants to know something more practical: "Can you use Python to solve an operational problem safely in production?" That changes the preparation completely. Python 3.14.7 is the current Python 3.14 maintenance release as of August 5, 2026, and the 3.14 series includes features such as officially supported free-threaded Python, deferred annotations, template string literals and multiple interpreters. (Python.org) For DevOps automation, the ecosystem also heavily revolves around practical integrations such as AWS through Boto3, Kubernetes through its Python client, subprocess execution, testing with pytest, APIs, CI/CD and infrastructure tooling. Boto3 provides Python access to AWS services including EC2 and S3, while Kubernetes officially supports a Python client library. (Boto3 Documentation) So instead of memorizing random Python questions, let's prepare around 50 high-relevance automation scenarios. And because apparently humans enjoy being asked the same concept eight different ways in interviews, every question follows the same framework. 😄 📘 SECTION 1: PYTHON + LINUX AUTOMATION1. How do you execute a Linux command using Python?🧠 Simple Concept Python can execute external Linux commands using the subprocess module. ❓ Why do we need it? DevOps engineers frequently need to automate commands such as: df -h systemctl status nginx kubectl get pods terraform plan docker ps⚙ How does it work? Python starts a child process, waits for it to finish and can capture its output and return code. 🏢 Production Example A monitoring script checks disk usage across servers every 10 minutes. 💻 Command / Codeimport subprocessresult = subprocess.run( ["df", "-h"], capture_output=True, text=True )print(result.stdout) Python documentation recommends subprocess.run() for many command-execution use cases.

## Flet 1.0 Released: Build Production Web, Desktop and Mobile Apps in Python Only

DevFeed: [Flet 1.0 Released: Build Production Web, Desktop and Mobile Apps in Python Only](<https://devfeed.tech/articles/flet-1-0-released-build-production-web-desktop-and-mobile-apps-in-python-only-55636.md>)

Original publisher: [Read original article](<https://www.marktechpost.com/2026/09/20/flet-1-0-released-build-production-web-desktop-and-mobile-apps-in-python-only/>)

Author: Michal Sutter

Published: 2026-09-20T20:50:56Z

Content type: release

Language: en

Sources: [MarkTechPost](<https://devfeed.tech/sources/marktechpost.md>)

Topics: [Mobile](<https://devfeed.tech/topics/mobile.md>), [Python](<https://devfeed.tech/topics/python.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [Flutter](<https://devfeed.tech/topics/flutter.md>), [Web](<https://devfeed.tech/topics/web.md>), [Continuous integration](<https://devfeed.tech/topics/continuous-integration.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Android](<https://devfeed.tech/topics/android.md>), [iOS](<https://devfeed.tech/topics/ios.md>), [Windows](<https://devfeed.tech/topics/windows.md>), [Linux](<https://devfeed.tech/topics/linux.md>)

Tags: [ai-shorts](<https://devfeed.tech/tags/ai-shorts.md>), [ai-tool](<https://devfeed.tech/tags/ai-tool.md>), [android](<https://devfeed.tech/tags/android.md>), [applications](<https://devfeed.tech/tags/applications.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [ci](<https://devfeed.tech/tags/ci.md>), [editors-pick](<https://devfeed.tech/tags/editors-pick.md>), [flutter](<https://devfeed.tech/tags/flutter.md>), [for-devs](<https://devfeed.tech/tags/for-devs.md>), [framework](<https://devfeed.tech/tags/framework.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [new-releases](<https://devfeed.tech/tags/new-releases.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [packages](<https://devfeed.tech/tags/packages.md>), [python](<https://devfeed.tech/tags/python.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [staff](<https://devfeed.tech/tags/staff.md>), [tech-news](<https://devfeed.tech/tags/tech-news.md>), [technology](<https://devfeed.tech/tags/technology.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

Flet 1.0 is an open-source Python framework for building production web, desktop, and mobile applications using Flutter-rendered interfaces without requiring Dart, Swift, Kotlin, or JavaScript. The release adds cross-platform packaging, layered testing, bundled Python versions, mobile-ready packages, performance improvements, and in-process communication between Python and Dart.

### Source excerpt

Flet 1.0 shipped on September 15, 2026, and the team now calls the framework ready for production apps. We look at what changed: a layered CI suite that drives packaged apps on real devices, bundled Python 3.12, 3.13 and 3.14, more than 100 mobile ready packages, faster control diffing, and dart-bridge in process communication. We also cover the one migration trap that will bite 0.28 users. The post Flet 1.0 Released: Build Production Web, Desktop and Mobile Apps in Python Only appeared first on MarkTechPost.

## How to Review AI-Generated Python Code Efficiently

DevFeed: [How to Review AI-Generated Python Code Efficiently](<https://devfeed.tech/articles/how-to-review-ai-generated-python-code-efficiently-31493.md>)

Original publisher: [Read original article](<https://realpython.com/review-ai-generated-code/>)

Author: Leodanis Pozo Ramos

Published: 2026-09-16T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [Code review](<https://devfeed.tech/topics/code-review.md>), [Python](<https://devfeed.tech/topics/python.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-coding-agents](<https://devfeed.tech/tags/ai-coding-agents.md>), [code](<https://devfeed.tech/tags/code.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [python](<https://devfeed.tech/tags/python.md>), [review](<https://devfeed.tech/tags/review.md>)

### AI overview

This tutorial presents a five-step workflow for reviewing AI-generated Python code. It recommends clarifying the code's intent, running automated checks such as ruff, mypy, bandit, and pytest, inspecting higher-risk areas, and confirming problems by running the code before fixing them.

### Source excerpt

Learn an efficient workflow to review AI-generated code in Python: run ruff, mypy, bandit, and pytest, then catch the bugs agents get wrong.

## Testing Infrastructure Code by Executing Its Real Expressions

DevFeed: [Testing Infrastructure Code by Executing Its Real Expressions](<https://devfeed.tech/articles/testing-infrastructure-code-by-executing-its-real-expressions-34115.md>)

Original publisher: [Read original article](<https://philipptheserver.com/posts/testing-real-expressions/>)

Author: Philipp Lehmann (philipp.lehmann@gruppe.ai)

Published: 2026-08-28T07:00:00Z

Content type: tutorial

Language: en

Sources: [Philipp Lehmann](<https://devfeed.tech/sources/philipp-lehmann.md>)

Topics: [Ansible](<https://devfeed.tech/topics/ansible.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>)

Tags: [ansible](<https://devfeed.tech/tags/ansible.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [code](<https://devfeed.tech/tags/code.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [pytest](<https://devfeed.tech/tags/pytest.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

This article explains how to test Ansible infrastructure code by rendering the shipped Jinja expression through Ansible's actual templating machinery. It recommends extracting the expression from the role file, using realistic fixture variables, and asserting on the rendered result instead of duplicating the computation in Python.

### Source excerpt

Ansible Templar in pytest: render the shipped combine(recursive=True) expression from defaults/main.yml instead of a shallow Python paraphrase.

## Introducing Pytest and Vitest integrations for LangSmith Evaluations

DevFeed: [Introducing Pytest and Vitest integrations for LangSmith Evaluations](<https://devfeed.tech/articles/introducing-pytest-and-vitest-integrations-for-langsmith-evaluations-78348.md>)

Original publisher: [Read original article](<https://www.langchain.com/blog/pytest-and-vitest-for-langsmith-evals>)

Author: LangChain Accounts

Published: 2026-08-26T10:46:33Z

Content type: release

Language: en

Sources: [LangChain Blog](<https://devfeed.tech/sources/langchain-blog.md>)

Topics: [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>)

Tags: [evaluations](<https://devfeed.tech/tags/evaluations.md>), [jest](<https://devfeed.tech/tags/jest.md>), [langsmith](<https://devfeed.tech/tags/langsmith.md>), [pytest](<https://devfeed.tech/tags/pytest.md>)

### AI overview

LangSmith introduces beta integrations for running LLM evaluations with Pytest and Vitest/Jest. The integrations bring test inputs, outputs, traces, and evaluation feedback into LangSmith, and support case-specific evaluation logic, local feedback, and CI pipeline use.

### Source excerpt

Introducing a new way to run evals using LangSmith's Pytest and Vitest/Jest integrations.

## Keeping Documentation Honest with an OpenAPI Snapshot Diff

DevFeed: [Keeping Documentation Honest with an OpenAPI Snapshot Diff](<https://devfeed.tech/articles/keeping-documentation-honest-with-an-openapi-snapshot-diff-34111.md>)

Original publisher: [Read original article](<https://philipptheserver.com/posts/openapi-docs-contract-test/>)

Author: Philipp Lehmann (philipp.lehmann@gruppe.ai)

Published: 2026-08-25T07:00:00Z

Content type: tutorial

Language: en

Sources: [Philipp Lehmann](<https://devfeed.tech/sources/philipp-lehmann.md>)

Topics: [OpenAPI Specification](<https://devfeed.tech/topics/openapi.md>), [FastAPI](<https://devfeed.tech/topics/fastapi.md>), [Continuous integration](<https://devfeed.tech/topics/continuous-integration.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>), [JSON](<https://devfeed.tech/topics/json.md>), [test](<https://devfeed.tech/topics/test.md>)

Tags: [api-documentation](<https://devfeed.tech/tags/api-documentation.md>), [ci](<https://devfeed.tech/tags/ci.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [fastapi](<https://devfeed.tech/tags/fastapi.md>), [json](<https://devfeed.tech/tags/json.md>), [openapi](<https://devfeed.tech/tags/openapi.md>), [pytest](<https://devfeed.tech/tags/pytest.md>), [test](<https://devfeed.tech/tags/test.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

The article explains how to keep API documentation aligned with a FastAPI application by generating its OpenAPI schema from the running code, comparing it with a committed snapshot in CI, normalizing the JSON diff, and requiring deliberate snapshot regeneration.

### Source excerpt

FastAPI app.openapi() snapshot test in pytest: fail CI when the live OpenAPI schema drifts from the committed openapi.snapshot.json.

## Constant-cost semantic memory for multi-agent systems

DevFeed: [Constant-cost semantic memory for multi-agent systems](<https://devfeed.tech/articles/constant-cost-semantic-memory-for-multi-agent-systems-50067.md>)

Original publisher: [Read original article](<https://neo4j.com/blog/developer/constant-cost-semantic-memory-for-multi-agent-systems/>)

Author: William\_Lyon

Published: 2026-08-04T10:06:48Z

Content type: tutorial

Language: en

Sources: [Neo4j](<https://devfeed.tech/sources/graph-database-technology-neo4j-blog.md>)

Topics: [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Code](<https://devfeed.tech/topics/code.md>), [Neo4j](<https://devfeed.tech/topics/neo4j.md>), [Python](<https://devfeed.tech/topics/python.md>), [Persistence](<https://devfeed.tech/topics/persistence.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [PyPI](<https://devfeed.tech/topics/pypi.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-memory](<https://devfeed.tech/tags/agent-memory.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [code](<https://devfeed.tech/tags/code.md>), [developer](<https://devfeed.tech/tags/developer.md>), [genai](<https://devfeed.tech/tags/genai.md>), [knowledge-graph](<https://devfeed.tech/tags/knowledge-graph.md>), [llms](<https://devfeed.tech/tags/llms.md>), [multi-agent-systems](<https://devfeed.tech/tags/multi-agent-systems.md>), [neo4j](<https://devfeed.tech/tags/neo4j.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [pypi](<https://devfeed.tech/tags/pypi.md>), [pytest](<https://devfeed.tech/tags/pytest.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

A tutorial on building persistent semantic memory for single and multi-agent systems with Semvec and Neo4j. It describes a healthcare assistant that grows from a single Python process into a network of agents with shared memory, handovers, consensus, and drift detection.

### Source excerpt

Give an agent persistent semantic memory with Neo4j as the single source of truth for both the domain and the conversational state

## Testing an Agent Harness Without Ever Calling the Model

DevFeed: [Testing an Agent Harness Without Ever Calling the Model](<https://devfeed.tech/articles/testing-an-agent-harness-without-ever-calling-the-model-34114.md>)

Original publisher: [Read original article](<https://philipptheserver.com/posts/testing-an-agent-harness/>)

Author: Philipp Lehmann (philipp.lehmann@gruppe.ai)

Published: 2026-07-31T07:00:00Z

Content type: tutorial

Language: en

Sources: [Philipp Lehmann](<https://devfeed.tech/sources/philipp-lehmann.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Agent Harness](<https://devfeed.tech/topics/agent-harness.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-harness](<https://devfeed.tech/tags/agent-harness.md>), [agents](<https://devfeed.tech/tags/agents.md>), [api](<https://devfeed.tech/tags/api.md>), [network](<https://devfeed.tech/tags/network.md>), [permission](<https://devfeed.tech/tags/permission.md>), [pytest](<https://devfeed.tech/tags/pytest.md>), [python](<https://devfeed.tech/tags/python.md>), [recording](<https://devfeed.tech/tags/recording.md>), [testing](<https://devfeed.tech/tags/testing.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>)

### AI overview

This tutorial explains how to unit test a coding agent's tool-call permission layer without calling a model. It recommends separating the decision function from model responses, using recorded real-request fixtures, and keeping the policy module independent of any LLM SDK.

### Source excerpt

Unit testing a coding agent's tool-call permission layer with pytest and recorded fixtures: allow, deny or ask decisions with no model or API key.

## Production ML-DSA Verification in 350 Lines of Python

DevFeed: [Production ML-DSA Verification in 350 Lines of Python](<https://devfeed.tech/articles/production-ml-dsa-verification-in-350-lines-of-python-20698.md>)

Original publisher: [Read original article](<https://words.filippo.io/mldsa-py/>)

Author: Filippo Valsorda

Published: 2026-07-26T11:45:08Z

Content type: release

Language: en

Sources: [Filippo Valsorda](<https://devfeed.tech/sources/filippo-valsorda.md>)

Topics: [Post-quantum cryptography](<https://devfeed.tech/topics/post-quantum-cryptography.md>), [Python](<https://devfeed.tech/topics/python.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [PyPI](<https://devfeed.tech/topics/pypi.md>)

Tags: [coverage](<https://devfeed.tech/tags/coverage.md>), [ml-dsa](<https://devfeed.tech/tags/ml-dsa.md>), [mutation-testing](<https://devfeed.tech/tags/mutation-testing.md>), [performance](<https://devfeed.tech/tags/performance.md>), [production](<https://devfeed.tech/tags/production.md>), [publishing](<https://devfeed.tech/tags/publishing.md>), [python](<https://devfeed.tech/tags/python.md>), [verification](<https://devfeed.tech/tags/verification.md>)

### AI overview

The author presents a 350-line, dependency-free pure-Python ML-DSA verifier supporting all parameter sets and Python 3.8+, with an API modeled on pyca/cryptography. It uses Python integers for the 23-bit field and SHA-3 from hashlib. Performance is about 230 ML-DSA-44 verifications per second without precomputation--roughly 60 times slower than Go. The implementation was built partly to independently test a Go implementation's test suite through mutation testing; it uses Wycheproof and CCTV vectors, reports 96% branch coverage, and says it kills every mutation the author and Claude devised. The excerpt says it is available from PyPI or as a single copyable file, dual-licensed CC0 and 0BSD.

### Source excerpt

I am publishing a production, pure-Python ML-DSA verifier. It's just 350 lines, and pretty readable and robust.

## Using Pytester to test my Playwright fixtures

DevFeed: [Using Pytester to test my Playwright fixtures](<https://devfeed.tech/articles/using-pytester-to-test-my-playwright-fixtures-51118.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/pytester/>)

Published: 2026-06-05T08:14:37Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Playwright](<https://devfeed.tech/topics/playwright.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Python](<https://devfeed.tech/topics/python.md>), [browser](<https://devfeed.tech/topics/browser.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [playwright](<https://devfeed.tech/tags/playwright.md>), [pytest](<https://devfeed.tech/tags/pytest.md>), [python](<https://devfeed.tech/tags/python.md>), [software-testing](<https://devfeed.tech/tags/software-testing.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

The article explains how to use pytest's Pytester plugin to test Playwright fixtures in isolated test suites. It covers verifying passing and failing tests, creating temporary files, and making installed browsers available to the isolated environment.

### Source excerpt

Who tests the tests? Test code isn't immune to bugs, so I'm using pytest's Pytester plugin to ensure my Playwright fixture is behaving correctly.

## Using Playwright to test my static sites

DevFeed: [Using Playwright to test my static sites](<https://devfeed.tech/articles/using-playwright-to-test-my-static-sites-51116.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/playwright/>)

Published: 2026-05-02T06:08:53Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Playwright](<https://devfeed.tech/topics/playwright.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Web app](<https://devfeed.tech/topics/webapp.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Python](<https://devfeed.tech/topics/python.md>), [WebKit](<https://devfeed.tech/topics/webkit.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Chromium](<https://devfeed.tech/topics/chromium.md>), [Firefox](<https://devfeed.tech/topics/firefox.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [chromium](<https://devfeed.tech/tags/chromium.md>), [firefox](<https://devfeed.tech/tags/firefox.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [playwright](<https://devfeed.tech/tags/playwright.md>), [pytest](<https://devfeed.tech/tags/pytest.md>), [python](<https://devfeed.tech/tags/python.md>), [software-testing](<https://devfeed.tech/tags/software-testing.md>), [static-websites](<https://devfeed.tech/tags/static-websites.md>), [testing](<https://devfeed.tech/tags/testing.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

A practical guide to using Playwright for end-to-end testing of static sites and other web apps. It covers browser-controlled tests, Python setup, browser compatibility checks, and pytest fixtures for reusing a browser instance and reducing boilerplate.

### Source excerpt

Playwright is a testing library that lets you control a browser and check how the page is behaving, and it's great for testing and scripting web apps.

## Pytest for Agent-Generated Code: Concrete Testing Strategies to Put Into Practice

DevFeed: [Pytest for Agent-Generated Code: Concrete Testing Strategies to Put Into Practice](<https://devfeed.tech/articles/pytest-for-agent-generated-code-concrete-testing-strategies-to-put-into-practice-83720.md>)

Original publisher: [Read original article](<https://dagster.io/blog/pytest-for-agent-generated-code-concrete-testing-strategies-to-put-into-practice>)

Author: Dennis Hume

Published: 2026-01-26T00:00:00Z

Content type: tutorial

Language: en

Sources: [Dagster](<https://devfeed.tech/sources/dagster.md>)

Topics: [Pytest](<https://devfeed.tech/topics/pytest.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [automation](<https://devfeed.tech/tags/automation.md>), [code](<https://devfeed.tech/tags/code.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [pytest](<https://devfeed.tech/tags/pytest.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

The article describes a repository-wide approach to testing agent-generated code: define when tests should be written, separate test-generation agents from application-code agents, specify preferred test levels and patterns, and set anti-patterns to keep suites fast and maintainable. It illustrates the strategy with Pytest tests that use fake infrastructure to check observable behavior.

### Source excerpt

When agents write tests, intent matters as much as correctness. By defining clear testing levels, preferred patterns, and explicit anti-patterns, we give agents the structure they need to produce fast, reliable Pytest suites that scale with automation.

## Dagster University Presents: Testing with Dagster

DevFeed: [Dagster University Presents: Testing with Dagster](<https://devfeed.tech/articles/dagster-university-presents-testing-with-dagster-83657.md>)

Original publisher: [Read original article](<https://dagster.io/blog/dagster-university-presents-testing-with-dagster>)

Author: Dennis Hume

Published: 2025-03-31T00:00:00Z

Content type: release

Language: en

Sources: [Dagster](<https://devfeed.tech/sources/dagster.md>)

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Mocking](<https://devfeed.tech/topics/mocking.md>)

Tags: [data-engineering](<https://devfeed.tech/tags/data-engineering.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [integration-testing](<https://devfeed.tech/tags/integration-testing.md>), [mocking](<https://devfeed.tech/tags/mocking.md>), [python](<https://devfeed.tech/tags/python.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

Dagster announces a free six-lesson course on testing with Dagster. It covers Python test design, unit and asset tests, managing external dependencies, integration testing, and techniques such as mocking API calls.

### Source excerpt

Learn best practices for writing Pythonic tests for Dagster.

## Test Failures Should Be Actionable

DevFeed: [Test Failures Should Be Actionable](<https://devfeed.tech/articles/test-failures-should-be-actionable-23857.md>)

Original publisher: [Read original article](<http://testing.googleblog.com/2024/05/test-failures-should-be-actionable.html>)

Author: Google Testing Bloggers (noreply@blogger.com)

Published: 2024-05-06T13:26:00Z

Content type: article

Language: en

Sources: [Google Testing Blog](<https://devfeed.tech/sources/google-testing-blog.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>)

Tags: [abseil](<https://devfeed.tech/tags/abseil.md>), [alerting](<https://devfeed.tech/tags/alerting.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [failure](<https://devfeed.tech/tags/failure.md>), [site-reliability](<https://devfeed.tech/tags/site-reliability.md>), [test](<https://devfeed.tech/tags/test.md>), [testing](<https://devfeed.tech/tags/testing.md>), [titus-winters](<https://devfeed.tech/tags/titus-winters.md>), [tott](<https://devfeed.tech/tags/tott.md>)

### AI overview

The article's central principle is that a failing unit test should give enough information to start investigating from its name and failure message, without adding diagnostics and rerunning it. Precise assertions help make tests both more informative and less brittle. In the C++ example, `EXPECT_TRUE(LoadMetadata().ok())` reports only that the status was false, while GoogleTest's `EXPECT_OK(LoadMetadata())` exposes the specific `NOT_FOUND` error and metadata file path, making the failure immediately actionable.

### Source excerpt

This article was adapted from a Google Testing on the Toilet (TotT) episode. You can download a printer-friendly version of this TotT episode and post it in your office. By Titus Winters There are a lot of rules and best practices around unit testing. There are many posts on this blog; there is deeper material in the Software Engineering at Google book; there is specific guidance for every major language; there is guidance on test frameworks, test naming, and dozens of other test-related topics. Isn't this excessive? Good unit tests contain several important properties, but you could focus on a key principle: Test failures should be actionable. When a test fails, you should be able to begin investigation with nothing more than the test's name and its failure messages--no need to add more information and rerun the test. Effective use of unit test frameworks and assertion libraries (JUnit, Truth, pytest, GoogleTest, etc.) serves two important purposes. Firstly, the more precisely we express the invariants we are testing, the more informative and less brittle our tests will be. Secondly, when those invariants don't hold and the tests fail, the failure info should be immediately actionable. This meshes well with Site Reliability Engineering guidance on alerting. Consider this example of a C++ unit test of a function returning an absl::Status (an Abseil type that returns either an "OK" status or one of a number of different error codes): EXPECT_TRUE(LoadMetadata().ok()); EXPECT_OK(LoadMetadata()); Sample failure output load_metadata_test.cc:42: Failure Value of: LoadMetadata().ok() Expected: true Actual: false load_metadata_test.cc:42: Failure Value of: LoadMetadata() Expected: is OK Actual: NOT_FOUND: /path/to/metadata.bin If the test on the left fails, you have to investigate why the test failed; the test on the right immediately gives you all the available detail, in this case because of a more precise GoogleTest matcher. Here are some other posts on this blog that emp

## Why Python keeps growing, explained

DevFeed: [Why Python keeps growing, explained](<https://devfeed.tech/articles/why-python-keeps-growing-explained-68076.md>)

Original publisher: [Read original article](<https://github.blog/developer-skills/programming-languages-and-frameworks/why-python-keeps-growing-explained/>)

Author: Rizel Scarlett

Published: 2023-03-02T19:11:10Z

Content type: article

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Django](<https://devfeed.tech/topics/django.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [coding](<https://devfeed.tech/tags/coding.md>), [developer-skills](<https://devfeed.tech/tags/developer-skills.md>), [octoverse](<https://devfeed.tech/tags/octoverse.md>), [programming-languages-frameworks](<https://devfeed.tech/tags/programming-languages-frameworks.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

Python's readable syntax, portability, open source ecosystem, and broad libraries help explain its use across software development, automation, testing, data science, and AI. The article also points to learning resources and GitHub tools for getting started.

### Source excerpt

A deep dive into why more people are using Python than ever, its key use cases, and why it's still so popular 30-plus years after it was first released.

## Road to 100% Test Coverage on notion-sdk-py

DevFeed: [Road to 100% Test Coverage on notion-sdk-py](<https://devfeed.tech/articles/road-to-100-test-coverage-on-notion-sdk-py-40833.md>)

Original publisher: [Read original article](<https://mutto.fyi/posts/2022/12/road-100-coverage-notion/>)

Published: 2022-12-26T00:00:00Z

Content type: tutorial

Language: en

Sources: [Mutt0-ds Notes](<https://devfeed.tech/sources/mutt0-ds-notes.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [test-coverage](<https://devfeed.tech/topics/test-coverage.md>), [Python](<https://devfeed.tech/topics/python.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [SDK](<https://devfeed.tech/topics/sdk.md>), [Notion](<https://devfeed.tech/topics/notion.md>)

Tags: [pytest](<https://devfeed.tech/tags/pytest.md>), [python](<https://devfeed.tech/tags/python.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [test-coverage](<https://devfeed.tech/tags/test-coverage.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

A practical discussion of improving test coverage for notion-sdk-py using pytest. It explains what coverage measures, why 100% coverage does not guarantee meaningful tests, and how testing can reveal areas for improvement.

### Source excerpt

There is something bizarre with me if two of my favourite activities are writing documentation and hitting my head against tests, which are...

## PDFx update and new version release (v1.4.1)

DevFeed: [PDFx update and new version release (v1.4.1)](<https://devfeed.tech/articles/pdfx-update-and-new-version-release-v1-4-1-31857.md>)

Original publisher: [Read original article](<https://www.metachris.dev/2021/04/pdfx-update-and-new-version-release-v1.4.1/>)

Author: Chris Hager

Published: 2021-04-12T00:00:00Z

Content type: release

Language: en

Sources: [Chris Hager](<https://devfeed.tech/sources/chris-hager.md>)

Topics: [pdf](<https://devfeed.tech/topics/pdf.md>), [Python](<https://devfeed.tech/topics/python.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [PyPI](<https://devfeed.tech/topics/pypi.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [cli](<https://devfeed.tech/tags/cli.md>), [code](<https://devfeed.tech/tags/code.md>), [contributors](<https://devfeed.tech/tags/contributors.md>), [coverage](<https://devfeed.tech/tags/coverage.md>), [github](<https://devfeed.tech/tags/github.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [pdf](<https://devfeed.tech/tags/pdf.md>), [pdfx](<https://devfeed.tech/tags/pdfx.md>), [pypi](<https://devfeed.tech/tags/pypi.md>), [python](<https://devfeed.tech/tags/python.md>), [release](<https://devfeed.tech/tags/release.md>), [tests](<https://devfeed.tech/tags/tests.md>), [update](<https://devfeed.tech/tags/update.md>), [version](<https://devfeed.tech/tags/version.md>)

### AI overview

PDFx, a Python tool and library for extracting text, links, references, and metadata from PDF files and URLs, was updated and released as version 1.4.1. The update includes broader Python compatibility, a switch to pdfminer.six, linting and static checks, tests, formatting, GitHub workflows, improved PDF URL detection, and inclusion of tests in the PyPI tarball.

### Source excerpt

PDFx is a tool to extract text, links, references and metadata from PDF files and URLs. Thanks to several contributors the project received a thorough update and was brought into 2021. The new release of today is PDFx v1.4.1 🎉 PDFx works like this:

[Next page](<https://devfeed.tech/topics/pytest.md?cursor=WyIyMDIxLTA0LTEyVDAwOjAwOjAwKzAwOjAwIiwgImZlYTY3OGVkLWFkODUtNGEwMS04YmZlLTU2NTQ5NjdmMWIyNCJd>)