Best Python code snippet using refurb_python
test_public.py
Source:test_public.py  
...143    check_func(func3, func3_case_7, False)144    check_func(func3, func3_case_8, True)145    check_func(func3, func3_case_9, False)146def func4_case_1() -> None:147    func4((1, 1, 2, 4))  # success148def func4_case_2() -> None:149    func4((1,))  # success150def func4_case_3() -> None:151    func4((1.2, 3.4))  # success152def func4_case_4() -> None:153    func4((1j, 3j, 6j, 7j))  # fail154def func4_case_5() -> None:155    func4((True, False))  # success156def func4_case_6() -> None:157    func4(("there", "are", "no", "reason"))  # fail158def test_func4() -> None:159    check_annotations(func4)160    check_func(func4, func4_case_1, True)161    check_func(func4, func4_case_2, True)162    check_func(func4, func4_case_3, True)163    check_func(func4, func4_case_4, False)164    check_func(func4, func4_case_5, True)165    check_func(func4, func4_case_6, False)166def func5_case_1() -> None:167    def f(a: float, b: float, c: complex) -> int:168        return 1169    func5(f, 1, 4.5, 1j)  # success170def func5_case_2() -> None:171    def f(a: complex, b: complex, c: complex) -> bool:172        return True...myclass2.py
Source:myclass2.py  
1class A:2    def func1(self):3        print('A func')4    def func4(self):5        print('AAAAAAAAAAAAA func4')6class B:7    def func2(self):8        print('B func')9    def func4(self):10        print('BBBBBBBBBBBBB func4')11class C(B, A):12    def func3(self):13        print('C func')14    def func4(self):15        print('CCCCCCCCCCCCC func4')16if __name__ == '__main__':17    c1 = C()18    c1.func1()19    c1.func2()20    c1.func3()...myclass4.py
Source:myclass4.py  
1class A:2    def func1(self):3        print('A func')4    def func4(self):5        print('A func4')6class B:7    def func2(self):8        print('B func')9    def func4(self):10        print('B func4')11class C(B, A):12    def func3(self):13        print('C func')14    def func4(self):15        print('C func4')16if __name__ == '__main__':17    c1 = C()18    c1.func1()19    c1.func2()20    c1.func3()...Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!
