Download Apache Hadoop YARN log to your local machine.
$ pip install yarnlog
$ yarnlog <YARN_URL>
I use Poetry to manage build process and dependencies.
$ poetry install
$ source $(poetry env info --path)/bin/activate
$ poetry run yarnlog
$ pytest
# coverage
$ pytest --cov=yarnlog tests
# coverage with html report
$ pytest --cov=yarnlog --cov-report html:htmlcov tests