How to unit test a method that has 2 other methods inside?

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How to unit test a method that has 2 other methods inside?



How would I create a unit test for a method that has other methods inside? I do not want to test inside methods - I know I can't. How would I do that?


class Example:

def something(self):
"""Search Records"""
self.clear_screen()
self.rockets_main_menu()



What is the best approach to create a unit test for "something" method?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

r6fFZyP
2qnhREVWEysdZ HCpNvv AZ,fzErtlc8d FN7 ZmgFnQz0yz ydEUqeGce8Jj

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3