Python Testing, Debugging, and Error Handling Essentials
Table of Contents
- 1. Testing and Debugging Drill
- 1.1. Testing
- 1.1.1. What is the purpose of unit testing? drill python_testing_debugging
- 1.1.2. What is the purpose of integration testing? drill python_testing_debugging
- 1.1.3. What is the purpose of system testing? drill python_testing_debugging
- 1.1.4. What is the purpose of acceptance testing? drill python_testing_debugging
- 1.1.5. What is the difference between black box testing and white box testing? drill python_testing_debugging
- 1.2. Pytest
- 1.3. Unittest
- 1.3.1. What is unittest? drill python_testing_debugging
- 1.3.2. How do you write a test class in unittest? drill python_testing_debugging
- 1.3.3. What is the purpose of the `assertEqual` method in unittest? drill python_testing_debugging
- 1.3.4. How do you run unittest tests? drill python_testing_debugging
- 1.4. Debugging
- 1.4.1. What is the purpose of the `pdb` module? drill python_testing_debugging
- 1.4.2. How do you set a breakpoint in pdb? drill python_testing_debugging
- 1.4.3. What is the purpose of the `step` command in pdb? drill python_testing_debugging
- 1.4.4. How do you inspect a variable in pdb? drill python_testing_debugging
- 1.5. Logging
- 1.5.1. What is the purpose of the `logging` module? drill python_testing_debugging
- 1.5.2. How do you configure logging in Python? drill python_testing_debugging
- 1.5.3. What is the purpose of the `logger` object? drill python_testing_debugging
- 1.5.4. How do you log a message in Python? drill python_testing_debugging
- 1.6. Error Handling
- 1.6.1. What is the purpose of try-except blocks? drill python_testing_debugging
- 1.6.2. What is the purpose of the `try` block? drill python_testing_debugging
- 1.6.3. What is the purpose of the `except` block? drill python_testing_debugging
- 1.6.4. How do you raise an exception in Python? drill python_testing_debugging
- 1.1. Testing