Skip to content

Switch test config files from INI to JSON format? #333

@waylan

Description

@waylan

As pointed out in #332, the testing frameworks' config files use the INI format, which is rather limiting. Perhaps we should switch to JSON - which being essentially the same format as Python lists and dicts, makes it very easy to represent pretty much any key/value pairs to pass in to extensions. This might eliminate the need to the tests/test_extensions.py file.

Note, this was not done originally because, at the time, we supported older versions of Python which did not have built-in support for JSON. Currently, our lowest supported version of Python is 2.6 -- the version in which the json lib was added to the standard library.

I also considered using just pure python files, but then they would need to be imported, and as they are in dirs with a bunch of test files (not python modules - no __ini__.py files), that could get complex. While doable, I think JSON is probably an easier lib to work with and more likely to be familiar to future maintainers than importing python files not available on the Python path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    someday-maybeApproved low priority request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions