Question 1mediummultiple choice
Study the full Python automation breakdown →PCPP1 Best Practices And Coding Conventions • Complete Question Bank
Complete PCPP1 Best Practices And Coding Conventions question bank — all 0 questions with answers and detailed explanations.
You are preparing a Python module for PyPI. Your project layout is:
project_root/ ├── setup.py ├── src/ │ └── mypackage/ │ ├── __init__.py │ └── core.py └── tests/ └── test_core.py
You want to write a test that imports mypackage.core and verifies the function add(a, b). Which import statement should you use at the top of tests/test_core.py to follow best practices for a src-layout project after installing the package in editable mode?