From 6e4c3d6acd1f6ee0891c25543188455c4a12c6f6 Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Sat, 7 Dec 2019 21:18:28 -0600 Subject: [PATCH] tests: require keys on analytics report schema --- tests/unit/test_analytics.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_analytics.py b/tests/unit/test_analytics.py index ece2501a9..a7163c48a 100644 --- a/tests/unit/test_analytics.py +++ b/tests/unit/test_analytics.py @@ -56,7 +56,8 @@ def test_runtime_info(tmp_global_config): "scm_class": Any("Git", None), "user_id": string, "system_info": dict, - } + }, + required=True, ) assert schema(analytics._runtime_info()) @@ -98,7 +99,7 @@ def test_is_enabled(dvc_repo, config, result, monkeypatch, tmp_global_config): def test_system_info(): - schema = Schema({"os": Any("windows", "mac", "linux")}) + schema = Schema({"os": Any("windows", "mac", "linux")}, required=True) system = platform.system()