def test_default_context_fields_overwrite_by_context(): context = telemetry.with_default_context_fields({"python": "foobar"}) assert context["python"] == "foobar"
def test_with_default_context_fields_contains_package_versions(): context = telemetry.with_default_context_fields() assert "python" in context assert context["rasa_open_source"] == rasa.__version__