Skip to content Skip to sidebar Skip to footer
Showing posts with the label Design Patterns

What Is A Correct Approach To Manage Test Data Using Pytest?

I need to create automated tests for several related apps and faced one problem with test data mana… Read more What Is A Correct Approach To Manage Test Data Using Pytest?

Python - Should I Use Static Methods Or Top-level Functions

I come from a Java background and I'm new to python. I have a couple scripts that share some h… Read more Python - Should I Use Static Methods Or Top-level Functions

Switch-case In Python Doesn't Work; Need Another Pattern

I need a help with some code here. I wanted to implement the switch case pattern in Python, so like… Read more Switch-case In Python Doesn't Work; Need Another Pattern

How Could A Mixin Or Factory Look Like Using Modern Python 3?

Imagine, we have a some files: scheme.py scheme.One.py scheme.Two.py sceme.*.py ... In file '… Read more How Could A Mixin Or Factory Look Like Using Modern Python 3?

Calling Chains Methods With Intermediate Results

I have a class and some methods of it. Could I keep a result of the methods between calling. Examp… Read more Calling Chains Methods With Intermediate Results