Rewrite and add pragmas to improve coverage of non-runnable test code

This commit is contained in:
Hugo 2020-08-22 11:45:33 +03:00
parent 66f5ace917
commit 48f4be0bcf
3 changed files with 15 additions and 26 deletions

View file

@ -13,7 +13,7 @@ from flaky import flaky
WRITE_TEST = sys.version_info[:2] == (3, 8)
def load_secrets():
def load_secrets(): # pragma: no cover
secrets_file = "test_pylast.yaml"
if os.path.isfile(secrets_file):
import yaml # pip install pyyaml