summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Make magic_[version|setparam|getparam] optionalAdam Hupp2020-05-051-6/+18
| | | | | These aren't present in ancient versions of libmagic, so only fetch optionally and throw NotImplementedError if called.
* Add docker tests for centos7 & 8Adam Hupp2020-05-052-0/+10
| | | | Since we have some breakage due to incompatible libraries there
* Update for deprecation of testing in setup.pyAdam Hupp2020-05-051-0/+6
| | | | | test_suite is deprecated in setup.py, so remove it and replace the command in .travis.yml with directly running the test
* Improve test coverageAdam Hupp2020-05-055-21/+35
| | | | | Make sure we fail early if any versions fail, and move to a python test runner since I can never remember how to use bash.
* Add alternative output for Parquet fileAdam Hupp2020-03-311-2/+2
|
* Add script to drive linux docker tests now that it supports WSL2, and fix ↵Adam Hupp2020-03-312-2/+2
| | | | focal dockerfile
* Adding snappy parquet to testKyle Prifogle2020-03-302-0/+2
|
* Expose magic_version as magic.version(), which returns an integer ↵Adam Hupp2020-01-241-0/+3
| | | | | | representing the version number. re: https://github.com/ahupp/python-magic/issues/204
* Add dockerfiles for running tests on various Ubuntu LTS versionsAdam Hupp2020-01-116-2/+39
|
* Hopefully fix #105Adam Hupp2020-01-111-1/+5
|
* actually fix CIAdam Hupp2019-12-112-2/+1
|
* Fix path for CIAdam Hupp2019-12-111-0/+0
|
* Fix https://github.com/ahupp/python-magic/issues/190Adam Hupp2019-12-113-1/+6
|
* Updated constructor to accept the raw flag and pass it to the underlying ↵rmspeers2018-09-202-0/+20
| | | | library. Helpful for cases where unicode chars exist in match results.
* Use INDIR_MAX rather than BYTES_MAX in tests since the latter wasn'tfix-ciAdam Hupp2018-09-011-6/+2
| | | | | supported until recently. Also, return .value from the ctypes wrapper so callers aren't required to.
* getparam/setparam support #163Christoph Biedl2018-08-161-0/+8
|
* Apply change from Corin-EU to allow tests to be run from any directoryAdam Hupp2018-08-161-3/+5
|
* fixes to run.shAdam Hupp2018-08-161-2/+2
|
* Make test runner handle missing python versions, based on a change fromAdam Hupp2018-08-161-4/+11
| | | | Corin-EU
* Merge pull request #177 from sbraz/bufferAdam Hupp2018-08-151-11/+14
|\ | | | | Tests: allow differences when reading a buffer or a file, fixes #173
| * Tests: allow differences when reading a buffer or a file, fixes #173Louis Sautier2018-08-141-11/+14
| | | | | | | | | | Also remove the loop in order to avoid analyzing files or buffers for each expected value, replace it with a call to assertIn().
* | Allow x-gzip as MIME type for gzip files, fixes #96Louis Sautier2018-08-131-1/+1
|/
* Remove Python 2.6Hugo2018-03-191-2/+0
|
* Bring "from_file()" under testGuido A.J. Stevens2018-01-251-0/+6
|
* PEP8Guido A.J. Stevens2018-01-251-11/+18
|
* fix test for xenial since travis started enabling itAdam Hupp2017-12-091-5/+5
|
* Merge pull request #149 from hugovk/fix-ciAdam Hupp2017-11-201-1/+1
|\ | | | | Fix the CI
| * Revert "update filetype reported by libmagic >=5.23 for keep_going=true"Hugo2017-10-141-1/+1
| | | | | | | | This reverts commit 9d127ceaab1da0632128422ffd6a2d340bd3e778.
* | python3 str handlingAdam Hupp2017-11-202-1/+10
|/ | | | | | | In python3 ctypes, a str is passed to ctypes as wchar*. This means the layout of the string magic looks like [ascii, null, ascii, null, etc]. For some reason, magic handles this just fine most of the time, but it's clearly wrong and I'm amazed it worked at all.
* update filetype reported by libmagic >=5.23 for keep_going=trueAdam Hupp2017-10-011-1/+1
|
* use my own photo to avoid licensing concernsAdam Hupp2017-10-011-0/+0
|
* rename magic.pyc to avoid cleaning during build stepAdam Hupp2017-09-142-2/+2
|
* Return str rather than bytes for the description strings on python3.Adam Hupp2016-06-051-6/+3
| | | | | Assumes utf-8 encoding from magic return values, which I hope is always the case.
* propagate exception in other branch of 509 hackAdam Hupp2016-06-051-0/+11
|
* hopefully fix tests on whatever travisci usesAdam Hupp2016-03-211-9/+18
|
* rename the unicode lambda file to "lambda" and rename it at runtime when ↵Adam Hupp2016-03-202-10/+15
| | | | | | running the test. distutils can't handle unicode filenames at install time.
* Fix travis configRaphaël Vinot2015-11-062-0/+0
| | | | The tests fail on travis ci because the libmagic 5.09 is buggy.
* force GMT so test runs consistentlytz-testfixAdam Hupp2015-11-061-2/+6
|
* update test output for libmagic in debian jessieAdam Hupp2015-10-191-4/+4
|
* Include tests in the sdist tarballAdam Hupp2015-07-299-0/+294