summaryrefslogtreecommitdiff
path: root/test_tablib.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #108 - Test and improve format autodetectionClaude Paroz2019-10-041-5/+21
| | | | Autodetection was added for the odf format.
* Refs #288 - Add string starting with '0' to xlsx round trip testClaude Paroz2019-10-041-2/+3
|
* Refs #304 - Test separator exportingClaude Paroz2019-10-041-0/+7
|
* Factorized exporting in all formats in testsClaude Paroz2019-10-041-33/+15
|
* Fixed #373 - Properly detect xlsx formatClaude Paroz2019-10-041-1/+11
|
* Refs #314 - Add datetime to xlsx round trip testClaude Paroz2019-10-041-2/+4
|
* Fixes #314 - Delegate type coercion to openpyxlClaude Paroz2019-10-041-0/+19
| | | | Thanks Cristiano Lopes for the initial patch.
* Fixes #274 - Fix Databook.load() params orderingClaude Paroz2019-10-041-0/+6
|
* Reorganized test cases by formatClaude Paroz2019-10-031-518/+531
|
* Refs #273 - Replaced vendored markup lib by dependencyClaude Paroz2019-10-031-1/+2
|
* delete ;schopenhauerzhang2019-10-031-1/+1
|
* Added CSV stream testAnthony Monthe2019-06-271-1/+19
|
* Merge branch 'master' into bugfix/invalid-ascii-csvBruno Alla2019-03-021-0/+59
|\ | | | | | | | | | | | | # Conflicts: # setup.py # tablib/compat.py # test_tablib.py
| * Add Jira table exportMathias Loesch2019-01-231-0/+19
| |
| * Fix: Circular reference detected error (#332)Bruno Soares2018-09-121-0/+17
| | | | | | | | | | | | | | | | * Rename function name * Add uuid handler on json dumps * Add myself to authors
| * reStructuredText (#336)Norman Hooper2018-09-121-0/+22
| | | | | | | | | | | | | | | | | | | | * median for Python 2 * More compat * Support reStructuredText * Tests
| * drop 2.6Kenneth Reitz2017-08-271-1/+0
| |
| * Adding initial DataFrames SupportJason Myers2017-08-261-0/+1
| | | | | | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* | Fix unicode encode errors on Python 2 -- Fixes #215Bruno Alla2017-05-021-4/+13
|/ | | | | | | | | | | | | | Switch csv library to backports.csv as the implementation is closer to the python 3 one. Add a test case covering the problem. Run tests with unicode_literals from future Fix unicode encode errors with unicode characters - Use `backports.csv` instead of `unicodecsv` - Use StringIO instead of cStringIO - Clean-up some Python 2 specific code
* Replaced vendored openpyxl by a dependency (#221)Claude Paroz2017-02-201-0/+5
| | | | | | | | | | | | It is time to make it happen. * Dropped Python 3.2 support Recent dependencies are dropping Python 3.2 too. * Replaced vendored openpyxl by a dependency Thanks Tommy Anthony for the initial patch.
* Fix date and datetime export to JSON in Python versions with a json packageDylan Verheul2016-11-301-0/+23
| | | | | Python without a json package will use omnijson and fail on date and datetime objects. Added unit tests.
* Add HTML format to the book_export test and fix the format to work properlyPaul Moss2016-03-181-0/+1
|
* Fixed __unicode__/__str__ for dataset with no headersTom Christie2016-02-251-0/+10
|
* PEP-8 standards followedtusharmakkar082016-02-221-90/+33
|
* smarter detect_format functionKenneth Reitz2016-02-071-5/+5
|
* Fix for transpose().transpose() with duplicate keysKenneth Reitz2016-02-071-1/+9
| | | | #199
* Merge branch 'develop' into import_exportKenneth Reitz2016-02-071-13/+241
|\ | | | | | | | | | | | | # Conflicts: # tablib/core.py # tablib/formats/_csv.py # tablib/formats/_xlsx.py
| * /s/unique/remove_duplicatesKenneth Reitz2016-02-071-5/+5
| | | | | | | | #182
| * Merge pull request #182 from cherepski/developKenneth Reitz2016-02-071-0/+19
| |\ | | | | | | Adding ability to unique all rows in a dataset.
| | * Adding ability to unique all rows in a dataset.Kevin Cherepski2015-02-041-0/+19
| | |
| * | Merge branch 'develop' of https://github.com/rabinnankhwa/tablib into developKenneth Reitz2016-02-071-0/+20
| |\ \ | | | | | | | | | | | | | | | | # Conflicts: # AUTHORS
| | * | adding support for creating subset of a dataset.rabinnankhwa2014-08-301-0/+20
| | |/
| * | python 3.2 is terribleKenneth Reitz2016-02-071-1/+1
| | |
| * | fixed stuipid testKenneth Reitz2016-02-071-13/+1
| | |
| * | Merge branch 'develop' of https://github.com/papisz/tablib into developKenneth Reitz2016-02-071-0/+24
| |\ \
| | * | CSV custom delimiter supportpapisz2014-04-091-0/+24
| | | |
| * | | Added LaTeX table export formatMathias Loesch2015-06-041-0/+62
| | | |
| * | | Fixes Row slicing. Fixes #184.Thomas Roten2015-03-281-0/+13
| | |/ | |/|
| * | Adding DBF support.James Douglass2014-08-211-0/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashing two squashes. Adding DBF support Adding the DBFpy python package The DBFpy package provides basic dbf support for python. Still need to write an interface format file for tablib. Adding DBF format and imports in compat.py Adding DBF format to formats.__init__ DBF format had not been committed to formats.__init__, so I’m adding it. Adding a dbf import test Adding at test to check whether a DBF can be created properly and compare it against a regression binary string. Adding an import_set test (and renaming another) Adding an import_set test that conforms with the other import_set tests for other formats. I’m also adding an export_set function. Fixing system site-packages import Importing dbfpy from tab lib.packages instead of system site packages. Fixing a syntaxError in dbfpy/dbfnew.py Fixing an issue with ending field definitions DBFPY, when writing a DBF, terminates the field definitions with a newline character. When importing a DBF from a stream, however, DBFPY was looking only for the \x0D character rather than the newline. Now we consider both cases. Adding a test for dbf format detection Adding DBF filetype detection tests Adding tests for YAML, JSON, TSV, CSV using the DBF detection function. Handling extra exceptions in dbf detection Adding exception handling for struct.error, an exception that DBFPY raises when trying to unpack a TSV table. Since it’s not a DBF file, we know it’s not a DBF and return False. Fixing an issue with the DBF set exporting test The DBF set export test needed a bit enabled (probably the writeable bit?) before the test would match the regression output. Updating dbf interface Updating the int/float class/type checking in the dbf format file. This allows for python2 and python3 compatibility. Tweaking dbfpy to work with python3 Altering a couple of imports. Updating dbf tests for binary data compatibility Making regression strings binary and improving debug messages for dbf assertion errors. Improving file handling for python 2 and 3 Updating DBF file handling for both python 2 and 3 in the _dbf interface. Adding a (seemingly) functional dbfpy for python3 I’ve made dbfpy python3 compatible! Tests appear to pass. A significant change was made to the format detection test whereby I made the input string a binary (bytes) string. If the string is not a bytes string by the time we try to detect the format, we try to decode the string as utf-8 (which admittedly might not be the safest thing to do) and try to decode anyways. Updating imports for tablib dbf interface Now importing python2 or python3 versions as appropriate. Updating dbf package references in compat.py Cleaning up debugging print statements Updating stream handling in dbf interface Factoring the open() call out of the py3 conditional and removing the temp file before returning the stream value. Adding dbfpy3 init.py I had apparently missed the dbfpy3 init file when committing dbfpy3. Adding dbfpy and dbfpy3 to setup.py's package list Switching test order of formats Putting dbf format testing ahead of TSV. In some of my tests with numeric DBF files, I encountered an issue where the ASCII horizontal tab character (0x09) would appear in a numeric DBF. Because of the order of tabular format imports, though, format detection would recognize it as a TSV and not as a DBF. Adding my name to AUTHORS. Adding a DBF property to tab lib core Documentation includes examples on how to explicitly load a DBF straight from a file and how to load a DBF from a binary string. Also, how to write the binary data to a file. Adding DBF format notes to README Adding exclamation point to DBF section title Matching formatting of XLS section Updating setup.py to match current dev state Setup.py had been updated since I forked the tablib repo, so I’m updating setup.py to match its current structure while still maintaining DBF compatibility. Fixed callable collumn test the test was sending a list instead of a function CORE CONTRIBUTORS :cake: @iurisilvio v0.10.0 WHEELS 3.3, 3.4 makefile for WHEELS v0.10.0 history ALL Separate py2 and py3 packages to avoid installation errors. Fix #151 Running travis and tox with python 3.4. Adding DBF support Adding the DBFpy python package The DBFpy package provides basic dbf support for python. Still need to write an interface format file for tablib. Adding DBF format and imports in compat.py Adding DBF format to formats.__init__ DBF format had not been committed to formats.__init__, so I’m adding it. Adding a dbf import test Adding at test to check whether a DBF can be created properly and compare it against a regression binary string. Adding an import_set test (and renaming another) Adding an import_set test that conforms with the other import_set tests for other formats. I’m also adding an export_set function. Fixing system site-packages import Importing dbfpy from tab lib.packages instead of system site packages. Fixing a syntaxError in dbfpy/dbfnew.py Fixing an issue with ending field definitions DBFPY, when writing a DBF, terminates the field definitions with a newline character. When importing a DBF from a stream, however, DBFPY was looking only for the \x0D character rather than the newline. Now we consider both cases. Adding a test for dbf format detection Adding DBF filetype detection tests Adding tests for YAML, JSON, TSV, CSV using the DBF detection function. Handling extra exceptions in dbf detection Adding exception handling for struct.error, an exception that DBFPY raises when trying to unpack a TSV table. Since it’s not a DBF file, we know it’s not a DBF and return False. Fixing an issue with the DBF set exporting test The DBF set export test needed a bit enabled (probably the writeable bit?) before the test would match the regression output. Updating dbf interface Updating the int/float class/type checking in the dbf format file. This allows for python2 and python3 compatibility. Tweaking dbfpy to work with python3 Altering a couple of imports. Updating dbf tests for binary data compatibility Making regression strings binary and improving debug messages for dbf assertion errors. Improving file handling for python 2 and 3 Updating DBF file handling for both python 2 and 3 in the _dbf interface. Adding a (seemingly) functional dbfpy for python3 I’ve made dbfpy python3 compatible! Tests appear to pass. A significant change was made to the format detection test whereby I made the input string a binary (bytes) string. If the string is not a bytes string by the time we try to detect the format, we try to decode the string as utf-8 (which admittedly might not be the safest thing to do) and try to decode anyways. Updating imports for tablib dbf interface Now importing python2 or python3 versions as appropriate. Updating dbf package references in compat.py Cleaning up debugging print statements Updating stream handling in dbf interface Factoring the open() call out of the py3 conditional and removing the temp file before returning the stream value. Adding dbfpy3 init.py I had apparently missed the dbfpy3 init file when committing dbfpy3. Adding dbfpy and dbfpy3 to setup.py's package list Switching test order of formats Putting dbf format testing ahead of TSV. In some of my tests with numeric DBF files, I encountered an issue where the ASCII horizontal tab character (0x09) would appear in a numeric DBF. Because of the order of tabular format imports, though, format detection would recognize it as a TSV and not as a DBF. Adding my name to AUTHORS. Adding a DBF property to tab lib core Documentation includes examples on how to explicitly load a DBF straight from a file and how to load a DBF from a binary string. Also, how to write the binary data to a file. Adding DBF format notes to README Adding exclamation point to DBF section title Matching formatting of XLS section Updating setup.py to match current dev state Setup.py had been updated since I forked the tablib repo, so I’m updating setup.py to match its current structure while still maintaining DBF compatibility. Fixed callable collumn test the test was sending a list instead of a function CORE CONTRIBUTORS :cake: @iurisilvio v0.10.0 WHEELS 3.3, 3.4 makefile for WHEELS v0.10.0 history ALL Separate py2 and py3 packages to avoid installation errors. Fix #151 Running travis and tox with python 3.4.
* | | New import/export interface with dataset and databook `import_` and `export` ↵import_exportIuri de Silvio2015-04-051-0/+25
|/ / | | | | | | | | | | methods and overloaded `import_set` and `import_book` functions.
* | allow csv fields to have multiple linesBrad Pitcher2014-05-011-0/+16
| |
* | load json to dict to workaround random dictionary hashesBrad Pitcher2014-04-301-2/+3
| |
* | Fix DeprecationWarnings: assertEquals -> assertEqualIuri de Silvio2014-04-191-3/+3
| |
* | Fix test_unicode_appendfix/unicode_appendIuri de Silvio2014-04-191-3/+7
|/
* Maintain dataset title after sort.Iuri de Silvio2014-01-111-1/+2
|
* Merge pull request #63 from jsdalton/fix_unicode_error_in_html_outputKenneth Reitz2014-01-081-1/+1
|\ | | | | Fix unicode error in html output
| * Fix UnicodeError in HTML outputJim Dalton2012-05-101-1/+1
| | | | | | | | | | | | | | | | * Alter `test_unicode_append` so that actual unicode characters outside the ASCII bytestring range are tested. * Make sure output of `render` in markup.py is unicode * Add wrapper around output of `export_set` in _html.py so that unicode characters are output.
* | Merge pull request #110 from djrobstep/developKenneth Reitz2014-01-081-0/+2
|\ \ | | | | | | Fix for a broken YAML test and tsv autodetection
| * | Fixed tsv auto format detection.Robert Lechte2013-08-281-0/+2
| | |
* | | Merge pull request #116 from kachick/fix-tsv-typoKenneth Reitz2014-01-081-2/+2
|\ \ \ | | | | | | | | Fix some typos in TSV test comment