summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* update test for upstream added gzip extensionsAdam Hupp2023-01-101-2/+1
|
* docker test cleanupAdam Hupp2023-01-108-23/+19
|
* use tox for all the multi-version testingAdam Hupp2022-05-227-57/+34
|
* rename test to match standard naming rules, so pytest finds it: ↵Adam Hupp2022-04-252-1/+1
| | | | https://docs.pytest.org/en/6.2.x/goodpractices.html#test-discovery
* less surprising use of abspathAdam Hupp2022-04-251-1/+1
|
* correctly find path to testdata when running from rootAdam Hupp2022-04-251-1/+5
|
* improve test script name clarity; expand test docs; cleanup docker run scriptAdam Hupp2022-04-253-8/+17
|
* Support file 5.41.Martin Liska2021-10-221-1/+1
| | | | | In https://github.com/file/file/commit/7d9b0f0d853957ad88dae0f440fecd58d2740ca7, the MIME was changed for Python bytecode.
* Support os.PathLike typesAdam Hupp2021-10-041-0/+8
| | | | See https://github.com/ahupp/python-magic/pull/251
* fix alpine library loadingAdam Hupp2021-06-037-1/+1
|
* Update tests and docker config for newer versionsAdam Hupp2021-06-014-5/+10
|
* add docker test for alpine linuxAdam Hupp2021-02-161-0/+4
|
* remove from_open_file, since its duplicative with from_descriptor and hasnt ↵Adam Hupp2021-01-151-9/+0
| | | | been released yet
* skip magic_descriptor tests in centos 7Adam Hupp2021-01-154-4/+22
|
* Revert "Remove Python2 from the tests"Adam Hupp2021-01-157-3/+8
| | | | This reverts commit 4a810b4f30f161b889d59cf2a207820fc0c731b7.
* Merge branch 'master' into redo-compatAdam Hupp2021-01-151-2/+1
|\
| * Add support for Python 3.9Miroslav Šedivý2021-01-111-1/+1
| |
* | Reformat according to PEPSchoolGuy2021-01-133-19/+24
| | | | | | | | I achieved this via the PyCharm Reformat Shortcut
* | Fix path of the test pdfSchoolGuy2021-01-131-2/+1
| |
* | Remove Python2 from the testsSchoolGuy2021-01-137-7/+4
| |
* | fix libmagic testAdam Hupp2018-01-141-1/+5
| |
* | Merge in compatability mode with libmagicAdam Hupp2017-12-042-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | The libmagic distribution uses the same package name `magic` as python-magic, but has an incompatible API. This change merges in a copy of libmagic's bindings, wrapped to give deprecation warnings. This is intended to a) mitigate the short-term pain to users and packagers who need to figure out which to use, and b) give us a path to merging the two sets of bindings. I'd be happy for libmagic to take over this package if we could find a path to it.
* | add from_open_file to match libmagic binding featuresetAdam Hupp2017-12-041-0/+6
|/
* Added support for magic_descriptor routinepsrok12020-12-071-0/+7
|
* Handle libmagic versions that don't support MAGIC_EXTENSIONAdam Hupp2020-11-061-5/+10
| | | | | | | | | | extension support was added to libmagic in 2015 in 9190a18d09f25fb0ca6abe1fcbdba780f5077e45. This change: - updates the test to handle various verions that return garbage / empty string.s - throws an exception in magic.Magic if extension support is requested and we know its not supported.
* MAGIC_EXTENSION support (file --extension)darkbarker2020-10-221-0/+7
|
* support changed mime types in testAdam Hupp2020-09-151-4/+8
|
* Fix tests with file 5.39Luca Weiss2020-09-071-4/+6
|
* add docker tests for archlinuxAdam Hupp2020-09-071-0/+5
|
* 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().