Commit Graph

142 Commits (21cc175867d1eeb57f4ad30df3b5ea9e647c7452)

Author SHA1 Message Date
Dan Puttick 21cc175867 Move non-filecheck.py binaries into examples directory
Tests for these scripts also removed from /tests and from .travis.yml
Two .zip archives accidentally deleted from /tests/src_invalid, re-added them
and changed .gitignore to prevent the problem
2017-01-19 15:25:08 -05:00
Dan Puttick f7ab393eb6 Refactor FileBase helper methods 2017-01-18 15:51:54 -05:00
Dan Puttick d4bfe794be In FileBase, self.extension is now always lowercase 2017-01-18 15:51:54 -05:00
Dan Puttick 43c01e0f05 Add example autorun.inf file to tests/src_invalid 2017-01-18 15:51:54 -05:00
Dan Puttick 3dad4faa61 Reorganize tests making them easier to run
- The tests now automatically run depending on whether you have the dependencies
installed, instead of failing and throwing exceptions.
- CONTRIBUTING.md has more information on how to run the tests.
- When the tests run, they will save their logs to /test_logs instead
of printing them so you can read them later.
- Change names of source file directories to make them more descriptive
2017-01-18 15:51:54 -05:00
Dan Puttick 70a73dc292 Move process_file code into its own method 2017-01-18 15:51:50 -05:00
Dan Puttick 35501b69af Create test_filecheck.py 2017-01-18 15:51:47 -05:00
Dan Puttick 0badab0b20 Small setup.py change 2016-12-20 15:16:58 -05:00
Dan Puttick 173a844b69 Some reorganization of filecheck.py, adding docstrings 2016-12-20 12:35:30 -05:00
Dan Puttick ecb4f56710 Small fixes to bin/README.md 2016-12-16 17:38:40 -05:00
Dan Puttick cef4223c53 Deleting old tests, minor test reorganization. 2016-12-16 17:36:21 -05:00
Dan Puttick 09973488eb Added small comment to helpers.py 2016-12-16 16:10:59 -05:00
Dan Puttick cb4ae5deec Changing travis and tests to run filecheck in Python 3 2016-12-16 16:07:43 -05:00
Dan Puttick 7bafff3699 Fixed several small filecheck.py bugs for python3 compat 2016-12-16 16:06:12 -05:00
Raphaël Vinot ff08dc1353 Merge pull request #7 from dputtick/test-unit
Docstrings and unit testing for helpers.py
2016-12-15 10:13:39 +01:00
Dan Puttick 18373e5292 Removed 2.7_with_site_packages from python versions 2016-12-14 15:51:56 -05:00
Dan Puttick 4f851435e5 Updated path traversal link, changed pip installs 2016-12-14 15:49:29 -05:00
Dan Puttick 0364e038e1 Added unit tests for KittenGroomerBase 2016-12-14 15:44:59 -05:00
Dan Puttick 196a9fcac1 Added unit tests for FileBase 2016-12-12 17:03:44 -05:00
Dan Puttick 52f56581d1 Skeleton of unit tests using pytest 2016-12-12 17:03:44 -05:00
Dan Puttick 27d15254f4 Added/changed docstrings for KittenGroomerBase 2016-12-12 17:03:38 -05:00
Dan Puttick 62a7f680b4 Added/changed docstrings to FileBase 2016-12-09 11:28:38 -05:00
Dan Puttick 146f258e54 Refactored mimetype code into its own method 2016-12-09 11:28:38 -05:00
Raphaël Vinot 62e62412cf Merge pull request #6 from dputtick/dev/test
Converting tests to pytest
2016-12-09 16:00:53 +01:00
Dan Puttick dc9c864e23 Removed __init__ from . and changed imports in tests
Python import system can be tricky, but I think that not having __init__ in
the main directory here is better. We'll have to make sure it doesn't break
anything.
2016-12-07 13:19:45 -05:00
Dan Puttick 91e6b85319 Updated .travis.yml to make build pass + added pytest-cov 2016-12-07 13:19:45 -05:00
Dan Puttick d0414cfbdc Added contents of tests/dst to gitignore 2016-12-07 13:19:45 -05:00
Dan Puttick 67e825046d Added fixtures for source and dest in test_examples 2016-12-07 13:19:26 -05:00
Dan Puttick 516b14ca10 Renamed test src directories for clarity 2016-12-07 13:19:26 -05:00
Dan Puttick fdf8fae065 Created test_examples.py
Decided that it makes sense to test example code seperately from module code.
At some point might move these tests in with the example code, but for now am
keeping them seperate and simple.
2016-12-07 13:18:28 -05:00
Dan Puttick b450abbaaa Setting up pytest 2016-12-07 13:17:16 -05:00
Dan Puttick 496aa479bd Minimum changes to make Travis build work
Had to comment out the path traversal exploit section due to broken bitbucket link.
Also added --no-check-certificate due to wget not finding a valid certificate for
https://www.officedissector.com
2016-12-07 11:09:11 -05:00
Dan Puttick e44c64f676 Wrote first version of CONTRIBUTING.md 2016-12-01 14:42:10 -05:00
Dan Puttick ea3c4e276c Added new docs related files to manifest 2016-12-01 13:58:16 -05:00
Dan Puttick 227532d83d Deleted README.rst 2016-12-01 11:36:49 -05:00
Dan Puttick 26366cdb6d Added dev-requirements 2016-11-30 14:08:11 -05:00
Dan Puttick 8eac0d25f9 Small change to bin/README.md 2016-11-30 13:53:41 -05:00
Dan Puttick 5615d5ef52 Small changes and typo fixes to README 2016-11-30 13:36:10 -05:00
Dan Puttick 71e47e4943 Added contributing.md, fixed playground readme typo 2016-11-30 13:35:45 -05:00
Dan Puttick 0b3bed6f0b Created changelog 2016-11-30 13:20:35 -05:00
Raphaël Vinot 04f2185b5d Improve RTF support 2016-05-17 14:10:14 +02:00
Raphaël Vinot fda900afc8 Cleanup unused mimetypes 2016-05-17 11:50:34 +02:00
Raphaël Vinot c4af907345 Add model/* example 2016-05-17 11:44:01 +02:00
Raphaël Vinot b9e38bfa3f Add message/* mimetype file 2016-05-17 11:15:38 +02:00
Raphaël Vinot 6154c3748d Add valid symlink 2016-05-17 11:11:24 +02:00
Raphaël Vinot 647bae27a3 Add RTF file and valid test file for pier9 script 2016-05-16 21:02:55 +02:00
Raphaël Vinot 6b9d1bdcc1 Add audio & video test file 2016-05-16 20:32:56 +02:00
Raphaël Vinot a4b045030c Add testfile for symlinks 2016-05-16 20:24:25 +02:00
Raphaël Vinot d22ea78f55 Add tests for OpenDocument 2016-05-16 20:15:38 +02:00
Raphaël Vinot 61f519edb4 Reduce default recursive archives 2016-05-16 14:23:56 +02:00