Skip to content

Commit

Permalink
Fix write failed when the inputs include dict values: #52
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Oct 17, 2021
1 parent bb78f1d commit 4632ca1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DataProperty>=0.54.1,<2
DataProperty>=0.54.2,<2
mbstrdecoder>=1.0.0,<2
pathvalidate>=2.3.0,<3
tabledata>=1.3.0,<2
Expand Down
6 changes: 6 additions & 0 deletions test/writer/text/test_markdown_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,8 @@ def test_normal_dequote(self):
["6", "'abc' 'efg'"],
["7", "'abc'"],
["8", '"abc"'],
["9", {"1": 1}],
["10", {"1"}],
]

writer = table_writer_class(
Expand All @@ -759,6 +761,8 @@ def test_normal_dequote(self):
| 6|'abc' 'efg' |
| 7|abc |
| 8|abc |
| 9|{'1': 1} |
| 10|{'1'} |
"""
)
out = writer.dumps()
Expand All @@ -785,6 +789,8 @@ def test_normal_dequote(self):
| 6|'abc' 'efg' |
| 7|'abc' |
| 8|"abc" |
| 9|{'1': 1} |
| 10|{'1'} |
"""
)
out = writer.dumps()
Expand Down

0 comments on commit 4632ca1

Please sign in to comment.