Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
seadowg committed Nov 18, 2020
1 parent 60ba095 commit d42d0bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyxform/tests_v1/test_audio_quality.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 1 addition & 3 deletions pyxform/xls2json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]})
Expand Down

0 comments on commit d42d0bf

Please sign in to comment.