Wednesday 02 December 2026 17:51:49 GMT+01:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

pytest

A Python testing framework that automatically finds tests and relevant conftest.py files.

pytest is a widely used Python testing framework. It automatically discovers test files and can discover and import relevant conftest.py files, which provide shared fixtures and configuration for tests. As a result, running pytest may execute repository code beyond the test functions themselves.

This matters in cybersecurity because untrusted or compromised code can hide in test files, configuration files, or imported helper modules. When a developer or CI system runs pytest, that code may execute with access to local files, environment variables, or credentials available to the process. Review unfamiliar repositories and their test-related files before running tests, and use isolated environments with minimal permissions for untrusted code.

← WIKICROOK index