[reports] Refactor tests and add command checks

1 job for 558_reports_fix_url_prefix_usage in 14 minutes and 36 seconds (queued for 8 seconds)
Status Job ID Name Coverage
  Build
failed #209633
docker-build
build_linux_36

00:14:36

66.0%
 
Name Stage Failure
failed
build_linux_36 Build
  File "/scratch/builds/iJyPBhV4/0/beat/beat.web/miniconda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2471, in load
self.require(*args, **kwargs)
File "/scratch/builds/iJyPBhV4/0/beat/beat.web/miniconda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2494, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/scratch/builds/iJyPBhV4/0/beat/beat.web/miniconda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 785, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'keyring>=15.1' distribution was not found and is required by twine

ERROR: Job failed: exit status 1