summaryrefslogtreecommitdiff
path: root/test_tablib.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * | | Fix some typos in TSV test commentKenichi Kamiya2013-08-311-2/+2
| |/ /
* | | Remove wrong/unused importBrianna Laugher2013-04-101-1/+0
|/ /
* | Merge pull request #68 from msabramo/python3Kenneth Reitz2012-11-151-1/+1
|\ \ | | | | | | Improve Python 3 compatibility
| * | Changes for Python 3 compatibility, including vendorizing xlrd3Marc Abramowitz2012-05-151-1/+1
| |/
* | another try at committingAaron Levin2012-08-011-2/+3
| |
* | Fix typos.Bruce Mitchener2012-06-081-2/+2
|/
* Databook.add_sheet test for not Dataset subclass added.Kuba Janoszek2012-03-131-0/+11
|
* Databook.add_sheet accepts Dataset subclassesKuba Janoszek2012-03-131-0/+15
|
* Fix #50 - Catch YAML ScannerErrorJan Brauer2012-01-291-0/+2
|
* Render table in Markdown format on unicode(dataset). Closes #41.Alexander Artemenko2011-10-161-0/+16
|
* really need to use testing branches..Kenneth Reitz2011-08-151-25/+1
|
* tuples didn't have index method in the past.Kenneth Reitz2011-08-151-3/+3
| | | …why?
* Fixing magic number in testMike Waldner2011-08-101-1/+1
|
* Throwing InvalidDimensions when append_col with header is called but only ↵Mike Waldner2011-08-101-3/+63
| | | | | | headers exists Related #33
* Merge branch 'html_None_fix' of https://github.com/mawaldne/tablib into developKenneth Reitz2011-08-081-0/+20
|\
| * Replace None with empty string before creating tdMike Waldner2011-08-071-0/+20
| |
* | Merge branch 'feature/xls-import' of https://github.com/xdissent/tablib into ↵Kenneth Reitz2011-07-141-0/+25
|\ \ | |/ |/| | | develop
| * Added XLS import supportGreg Thornton2011-07-141-0/+25
| |
* | Created get_col method with tests and tutorial.rst updateMark Walling2011-07-111-0/+16
|/ | | | Useful when you have multiple columns with the same header
* Merge branch 'unicodeheaders' of https://github.com/mwalling/tablib into developKenneth Reitz2011-07-041-0/+42
|\
| * Added support for detecting unicode column headersMark Walling2011-07-011-0/+42
| | | | | | | | | | | | Also added tests! Fix for kennethreitz#26
* | yayKenneth Reitz2011-06-301-1/+1
|/
* test cleanupsKenneth Reitz2011-06-211-14/+8
|
* Major API ChangesKenneth Reitz2011-06-211-15/+15
| | | Related #21