• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / formpack / 27369168593

11 Jun 2026 06:36PM UTC coverage: 86.834% (-0.02%) from 86.852%
27369168593

push

github

web-flow
Merge pull request #347 from kobotoolbox/dev-2233-export-qual-qs

fix(qual): fix format for qualitative multiple select questions DEV-2233

# Summary
Refactor QualSelectMultipleField to export ordinal columns containing text values

# Description
Replaced the legacy behavior in QualSelectMultipleField where selected qualitative multiple-select responses were aggregated into a single, comma-separated string
Implemented get_labels() and get_value_names() to dynamically yield a fixed number of ordinal positional columns (e.g., Option 1, Option 2, ... Option N). The number of columns generated matches the maximum possible number of choices mapped in the field schema
Modified get_value_from_entry() to return an ordered list of the specific text labels (choices) the user selected
Implemented a new format() method that maps the textual values into different columns for each option
Updated the test_additional_field_exports_advanced unit tests in tests/test_additional_field_exports.py

1057 of 1313 branches covered (80.5%)

43 of 43 new or added lines in 1 file covered. (100.0%)

6 existing lines in 1 file now uncovered.

2559 of 2947 relevant lines covered (86.83%)

1.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

79.03
/src/formpack/utils/string.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc