html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,issue,performed_via_github_app
https://github.com/simonw/sqlite-utils/issues/74#issuecomment-572871797,https://api.github.com/repos/simonw/sqlite-utils/issues/74,572871797,MDEyOklzc3VlQ29tbWVudDU3Mjg3MTc5Nw==,9599,2020-01-10T04:47:55Z,2020-01-10T04:47:55Z,OWNER,"This is odd. I'd love to see more about that result object.
Could you try running `pytest --pdb` and then `result.exit_code, result.exception` in the PDB prompt, something like this?
```
$ pytest --pdb
========================================================= test session starts =========================================================
platform darwin -- Python 3.7.4, pytest-5.2.2, py-1.8.0, pluggy-0.13.0
rootdir: /Users/simonw/Dropbox/Development/sqlite-utils
plugins: cov-2.8.1
collected 216 items
tests/test_black.py s [ 0%]
tests/test_cli.py F
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> traceback >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
db_path = '/private/var/folders/bl/5x847xbj2yb7xmp7f2tz7l280000gn/T/pytest-of-simonw/pytest-3/test_tables0/test.db'
def test_tables(db_path):
result = CliRunner().invoke(cli.cli, [""tables1"", db_path])
> assert '[{""table"": ""Gosh""},\n {""table"": ""Gosh2""}]' == result.output.strip()
E assert '[{""table"": ""...e"": ""Gosh2""}]' == ''
E - [{""table"": ""Gosh""},
E - {""table"": ""Gosh2""}]
tests/test_cli.py:28: AssertionError
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> entering PDB >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> PDB post_mortem (IO-capturing turned off) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> /Users/simonw/Dropbox/Development/sqlite-utils/tests/test_cli.py(28)test_tables()
-> assert '[{""table"": ""Gosh""},\n {""table"": ""Gosh2""}]' == result.output.strip()
(Pdb) result.exit_code, result.exception
(1, OperationalError('near ""/"": syntax error'))
```
That should show the exception that caused the script to fail to run.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",546073980,
https://github.com/simonw/sqlite-utils/issues/74#issuecomment-573388052,https://api.github.com/repos/simonw/sqlite-utils/issues/74,573388052,MDEyOklzc3VlQ29tbWVudDU3MzM4ODA1Mg==,15092,2020-01-12T06:51:30Z,2020-01-12T06:51:30Z,CONTRIBUTOR,"Thanks. That showed me that there was a click cli runner error, and setting `export LANG=en_US.UTF-8` fixed it.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",546073980,
https://github.com/simonw/sqlite-utils/issues/74#issuecomment-573389669,https://api.github.com/repos/simonw/sqlite-utils/issues/74,573389669,MDEyOklzc3VlQ29tbWVudDU3MzM4OTY2OQ==,15092,2020-01-12T07:21:17Z,2020-01-12T07:21:17Z,CONTRIBUTOR,"I guess there is some extra flag for ` CliRunner.invoke` to check exitcode and raise the exception, or that should be an extra assert added.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",546073980,