From d42d0bf3d4fb758a47505d056374d359685d904a Mon Sep 17 00:00:00 2001 From: Callum Stott Date: Wed, 18 Nov 2020 15:25:28 +0000 Subject: [PATCH] Reformat --- pyxform/tests_v1/test_audio_quality.py | 2 +- pyxform/xls2json.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pyxform/tests_v1/test_audio_quality.py b/pyxform/tests_v1/test_audio_quality.py index 1d5b378fa..8d5bfacd0 100644 --- a/pyxform/tests_v1/test_audio_quality.py +++ b/pyxform/tests_v1/test_audio_quality.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- from pyxform.tests_v1.pyxform_test_case import PyxformTestCase -class AudioQualityTest(PyxformTestCase): +class AudioQualityTest(PyxformTestCase): def test_voice_only(self): self.assertPyxformXform( name="data", diff --git a/pyxform/xls2json.py b/pyxform/xls2json.py index 561aac1c2..9027bd084 100644 --- a/pyxform/xls2json.py +++ b/pyxform/xls2json.py @@ -1289,9 +1289,7 @@ def replace_prefix(d, prefix): if "quality" in parameters.keys(): if parameters["quality"] not in ["voice-only", "normal", "external"]: - raise PyXFormError( - "Invalid value for quality." - ) + raise PyXFormError("Invalid value for quality.") new_dict["bind"] = new_dict.get("bind", {}) new_dict["bind"].update({"odk:quality": parameters["quality"]})