testing-conventions 0.0.76

Enforce testing conventions in libraries (Python, TypeScript, and Rust).
Documentation
1
2
3
4
5
6
7
8
# Red fixture for R3 (#51): a test mutates os.environ via a method call.
import os


def describe_widget():
    def it_updates_env():
        os.environ.update({"MYPROJECT_TOKEN": "test-token"})
        assert run() == "test-token"