Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from unittest import patch, TestCase
- localserver = partial(funkcja, local=True)
- @patch('dupa.kupa.chuj', localserver)
- class TestFooBar(TestCase):
- def test_whatever(self, lokalnie):
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement