Best Python code snippet using refurb_python
test_checks.py
Source:test_checks.py
...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 = [33 "test/e2e/custom_check.py",34 "--load",35 "test.custom_checks.disallow_call",36 ]37 ignore_args = args + ["--ignore", "XYZ100"]...
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!!