:date: 2018-04-23 ====================== Monday, April 23, 2018 ====================== I am working on :ticket:`2368` (adapt the test suite) in order to finish the eidreader project. I moved the test cases from welfare to :mod:`lino_book.projects.adg`. TIL: When you :func:`print` a dict to stdout, Python uses single quotes around the keys: >>> d = {'a': 1} >>> print(d) {'a': 1} But that is not valid json: >>> import json >>> json.loads("""{'a': 1}""") Traceback (most recent call last): ... ValueError: Expecting property name: line 1 column 2 (char 1) For json requires double quotes for dictionary keys: >>> json.loads("""{"a": 1}""") {u'a': 1} I changed :ref:`eidreader` so that when invoked without any argument it uses :func:`json.dumps` instead of :func:`print`. The advantage is that I can now redirect the output of :cmd:`eidreader` to the :file:`beid_test_1.json` file in :mod:`lino_book.projects.adg.tests`.