155 Commits

Author SHA1 Message Date
Daniel Quinn
5342db6ada Fix pycodestyle complaints
Apparently, pycodestyle updated itself to now check for invalid escape
sequences, which only complain if the regex in use isn't a raw string
(r"").
2018-09-09 20:00:12 +01:00
Daniel Quinn
f1e1bb4deb Fix #384: duplicate tags due to case insensitivity 2018-09-02 20:48:51 +01:00
Daniel Quinn
f72fa43e86 Add check for changed password
These tests are incomplete, but I have no idea how to write the other
half.
2018-05-28 12:58:28 +01:00
Daniel Quinn
20a4a66a57 Clean up test formatting a bit 2018-04-22 16:28:21 +01:00
Daniel Quinn
7223ea3c3f Don't explode on invalid dates 2018-04-22 16:27:43 +01:00
CkuT
3aafabba26 Fix LogEntry user when PAPERLESS_DISABLE_LOGIN is set to true 2018-04-17 21:03:18 +02:00
CkuT
1d162dc769 Add test case 2018-03-13 19:27:59 +01:00
Ovv
f8c6c07bb7 use tmp dir 2018-03-03 18:43:20 +00:00
Ovv
8fefafb844 style & test 2018-03-03 18:43:20 +00:00
Daniel Quinn
870357968a Fix tests to run on boxes with post-consume-scripts set 2018-01-06 17:23:24 +00:00
ishirav
d1c8241947 break long lines (pep8) 2017-12-23 07:39:40 +02:00
ishirav
4c38b28469 break long lines (pep8) 2017-12-23 06:59:48 +02:00
ishirav
83746a9aeb Add tests and improve whitespace handling 2017-12-23 06:37:00 +02:00
Daniel Quinn
347986a2b3 Allow correspondents to be deleted without deleting their documents
Fixes #235
2017-07-15 19:13:10 +01:00
Daniel Quinn
ede274386b Detect .tif files properly
Fixes #232
2017-07-15 19:02:11 +01:00
CkuT
da71eab0ae Use constants for manifest 2017-05-08 14:54:48 +02:00
jgysland
6ce27d225d add fuzzy matching + tests 2017-04-29 17:13:04 -04:00
Daniel Quinn
6af58203dd fix: travis doesn't like my new tests 2017-03-28 21:23:42 +00:00
Daniel Quinn
fa4924d5ba fix: allow for caps in file name suffixes #206
@schinkelg ran aground of this one and I took the opportunity to add a
test to catch this sort of thing for next time.
2017-03-28 21:14:24 +00:00
Daniel Quinn
7611c2b3d5 fix: pep8 + travis & tox env updates 2017-03-25 15:10:51 +00:00
Daniel Quinn
55e81ca4bb feat: refactor for pluggable consumers
I've broken out the OCR-specific code from the consumers and dumped it
all into its own app, `paperless_tesseract`.  This new app should serve
as a sample of how to create one's own consumer for different file
types.

Documentation for how to do this isn't ready yet, but for the impatient:

* Create a new app
    * containing a `parsers.py` for your parser modelled after
      `paperless_tesseract.parsers.RasterisedDocumentParser`
    * containing a `signals.py` with a handler moddelled after
      `paperless_tesseract.signals.ConsumerDeclaration`
    * connect the signal handler to
      `documents.signals.document_consumer_declaration` in
      `your_app.apps`
* Install the app into Paperless by declaring
  `PAPERLESS_INSTALLED_APPS=your_app`.  Additional apps should be
  separated with commas.
* Restart the consumer
2017-03-25 15:10:25 +00:00
Daniel Quinn
fddd330e75 Fixed reference to wrong file 2017-01-01 16:40:29 +00:00
Daniel Quinn
6183e1ce5f pep8 2016-11-27 15:10:07 +00:00
Daniel Quinn
18495ce9da Fix for #154
* Added a test with a faked pyocr and tesseract
* Added a catch for pyocr's *other* TesseractError
2016-11-27 15:06:45 +00:00
Daniel Quinn
8e58406881 pep8 corrections 2016-10-26 09:32:59 +00:00
Aleksandr Bogdanov
63de2ca1b0 Collapsing excess whitespace after OCR 2016-10-12 01:46:34 +02:00
Daniel Quinn
1ce76a5486 Actually write the date found in the file name 2016-08-20 18:11:51 +01:00
Daniel Quinn
3bbcd562fc Account for thumbnail deletion as well 2016-08-20 14:03:42 +01:00
Daniel Quinn
f5daded930 Fix for #131: delete files on document.delete 2016-08-16 19:13:37 +01:00
Daniel Quinn
5a07c72f1e removing duplicate code 2016-04-17 14:39:49 +01:00
Daniel Quinn
859440d8bd Merging the duplicate code for tests 2016-04-17 14:39:36 +01:00
Florian Harr
9ff4b6c6bc UnitTests for inline attachment email 2016-04-14 13:01:03 -04:00
Daniel Quinn
aea9ea50e5 Better naming 2016-03-28 14:18:57 +01:00
Daniel Quinn
b4e648e1e3 Test All The Things 2016-03-28 14:16:26 +01:00
Daniel Quinn
b92e007e15 Removed log components and introduced signals for tags & correspondents 2016-03-28 11:11:15 +01:00
Daniel Quinn
0aa0513004 Modifications for support for dates 2016-03-24 19:18:33 +00:00
Tikitu de Jager
a22f088e28 Add some failing edge case tests 2016-03-07 21:48:47 +02:00
Tikitu de Jager
8afdcabca8 Template-based tests of combinations of valid elements 2016-03-07 21:47:18 +02:00
Tikitu de Jager
ad07eec3e1 Make tests pass 2016-03-07 21:37:18 +02:00
Daniel Quinn
ba7878b9aa Added some tests for the importer 2016-03-03 21:25:08 +00:00
Daniel Quinn
85f5963851 Fixt capitalisation 2016-02-28 15:02:18 +00:00
Daniel Quinn
9379e95446 Added a test for the new by_group() feature 2016-02-28 00:53:18 +00:00
Daniel Quinn
8687892332 Don't print to standard out during a test 2016-02-28 00:52:44 +00:00
Daniel Quinn
a4d89ed124 Fixt the test to ignore verbosity 2016-02-27 20:50:48 +00:00
Daniel Quinn
2fe9b0cbc1 New logging appears to work 2016-02-27 20:18:50 +00:00
Daniel Quinn
1aecb1e63a Compensate for case and format of jpg vs. jpeg 2016-02-23 20:15:13 +00:00
Daniel Quinn
422ae9303a pep8 2016-02-21 00:14:50 +00:00
Daniel Quinn
ec88ea73f6 #48: make the tag matching smarter 2016-02-19 00:45:02 +00:00
Daniel Quinn
6b0a537bff Added support for a shared secret in email 2016-02-14 03:01:24 +00:00
Daniel Quinn
840472071c Added the required verbosity reference 2016-02-12 08:27:28 +00:00