Job category:Software Engineering

Refactoring by Leveraging Your Tests with Python and Pytest

This course focuses on the Refactor step in TDD, teaching developers to spot code smells and resolve them through refactoring. Using real-world examples, you'll identify common issues, apply refactoring techniques, and ensure functionality is preserved with existing tests.
pytest
Python
5 lessons
21 practices
1 hour
Badge for Computer Science Fundamentals,

Course details

Eliminating Duplicated Code: Extract Functions and Refactor Magic Numbers
Refactor Duplicated Code in the Tests
Refactor Tests using Parameterization
Extract Function: calculate_item_cost
Refactor duplication between calculate functions
Refactor Magic Numbers into Constants

Turn screen time into skills time

Practice anytime, anywhere with our mobile app.
Sign up

Join the 1M+ learners on CodeSignal

Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal