Best Python code snippet using refurb_python
test_checks.py
Source:test_checks.py
...14 errors = run_refurb(Settings(files=["something"]))15 assert errors == [16 "refurb: can't read file 'something': No such file or directory"17 ]18def test_mypy_error_is_bubbled_up() -> None:19 errors = run_refurb(Settings(files=["some_file.py"]))20 assert errors == [21 "refurb: can't read file 'some_file.py': No such file or directory"22 ]23def test_ignore_check_is_respected() -> None:24 test_file = str(TEST_DATA_PATH / "err_100.py")25 errors = run_refurb(26 Settings(27 files=[test_file], ignore=set((ErrorCode(100), ErrorCode(123)))28 )29 )30 assert len(errors) == 031def test_ignore_custom_check_is_respected() -> None:32 args = [...
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!!