# TypeError: test_case() missing 1 required positional argument: 'expected'

- **ID:** `python/typeerror-test-case-missing-args`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Test function defined with required arguments but called without providing all arguments.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |

## Workarounds

1. **Provide the missing argument in the test call** (95% success)
   ```
   def test_case(input, expected): ... ; test_case(5, 10)
   ```
2. **Use pytest parametrize to supply arguments** (98% success)
   ```
   @pytest.mark.parametrize('input,expected', [(5,10)]) 
def test_case(input, expected): ...
   ```

## Dead Ends

- **Adding a default value to expected** — Default values may mask missing arguments but still cause logic errors if not intended. (50% fail)
- **Ignoring the error and rerunning** — The test will continue to fail until the argument is provided. (90% fail)
