Philipp
87866bcab0
Add "Created" as additional (optional) parameter for post_documents ( #965 )
...
* Added "created" as optional parameter for post_documents.
* Fixed Conflict
* After Black Reformatting
* Run "add-trailing-comma"
* The right order between black and trailing comma is important....
* Added required=False
* Adds unit test for optional created in document api POST
* Fixes adding of settings override
* And a mis-added print, sigh
Co-authored-by: Philipp <philipp@invalid.invalid>
Co-authored-by: Trenton Holmes <holmes.trenton@gmail.com>
2022-05-18 02:56:32 -07:00
Trenton Holmes
cb65c5e6d5
Removes accidental printing left in testing
2022-05-17 11:13:58 -07:00
Trenton Holmes
78b721a817
Makes minor improvements to ui_settings API testing
2022-05-17 11:13:58 -07:00
Michael Shamoon
b7b44bfb4e
Code suggestions
...
Co-Authored-By: Trenton Holmes <797416+stumpylog@users.noreply.github.com>
2022-05-17 11:13:58 -07:00
Michael Shamoon
8cda57588d
basic python tests
2022-05-17 11:13:19 -07:00
Trenton Holmes
7f6edda761
Merge pull request #953 from paperless-ngx/bugfix-intoify-debounce
...
Bugfix: Adds configurable intoify debounce time
2022-05-17 09:25:29 -07:00
shamoon
f7c08bbdd1
Merge pull request #942 from paperless-ngx/bugfix-date-format
...
Bugfix: Fixes document filename date off by 1 issue
2022-05-16 21:47:56 -07:00
Florian Brandes
78cb3430e0
fixes #949 : change to MIME detection for files
...
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-05-16 17:29:29 +02:00
Trenton Holmes
836373bc3b
Adds configuration variable to the inotify debounce timing
2022-05-15 11:48:12 -07:00
Trenton Holmes
58f3cb9209
Moves the asserts to be closer together
2022-05-14 08:20:55 -07:00
Trenton Holmes
5ed4597a4f
Fixes Document public filename so it will use the local date instead of UTC date
2022-05-13 09:10:36 -07:00
Trenton Holmes
cd113ea5c9
Adds unit testing for remote version getting
2022-05-11 12:59:38 -07:00
shamoon
6cfeb093da
Merge pull request #903 from paperless-ngx/bugfix-superuser-command
...
Bugfix: Superuser Management Won't Reset Password
2022-05-10 16:46:14 -07:00
shamoon
3ccf143c0b
Merge pull request #721 from paperless-ngx/bug-fix-date-ignore
...
Fix Ignore Date Parsing
2022-05-10 16:45:58 -07:00
Trenton Holmes
92801dd379
Removes unused imports from test case
2022-05-09 09:49:11 -07:00
Trenton Holmes
a1eb14f8a9
Updates the superuser management command to better handle existing super users
2022-05-09 09:38:17 -07:00
Trenton Holmes
a944ef1ca6
Adds additional testing for both date parsing and consumed document created date
2022-05-08 16:57:35 -07:00
Trenton Holmes
f62193099c
Runs pyupgrade to Python 3.8+ and adds a hook for it
2022-05-06 09:04:08 -07:00
Trenton Holmes
e805ca78cb
Accounts for Python 3.8 backported zoneinfo
2022-05-04 15:13:17 -07:00
Oliver Lippert
5dd344a003
use zoneinfo instead of pytz
...
Signed-off-by: Oliver Lippert <info@trusty.codes>
#267
2022-05-03 08:08:28 +02:00
Oliver Lippert
67c85effaa
add test for filename expectation with modified timezone
...
Signed-off-by: Oliver Lippert <info@trusty.codes>
#267
2022-05-01 08:41:38 +02:00
Florian Brandes
fd7385c802
code review changes
...
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-04-20 00:55:45 +02:00
Florian Brandes
1f678c2210
add tests
...
fix indention
add more documentation
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-04-17 16:10:53 +02:00
Florian Brandes
40d1412e5e
add TIFF barcode support
...
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-04-16 21:59:03 +02:00
shamoon
78d012dce9
Merge pull request #483 from stumpylog/check-if-file-busy
...
Adds wait for file before consuming
2022-04-11 11:56:05 -07:00
Trenton Holmes
dcc2e018ff
Adds additional checking for both inotify and polling around document still being busy before consuming it
2022-04-10 12:21:34 -07:00
Florian Brandes
2f3ce6a6e3
fix conditional in separate_pages
...
add additional test for separate_pages
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-04-08 08:09:48 +02:00
Florian Brandes
b58d10a2d7
add more tests
...
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-04-07 11:14:29 +02:00
Florian Brandes
d0e39edfbe
use imported List
...
fail test if non-existing dir exists
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-04-07 11:14:29 +02:00
Florian Brandes
537bec2eeb
addes tests:
...
- barcode-39
- barcode-128
- qr barcodes
- test for consumption
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-04-07 11:14:29 +02:00
Florian Brandes
3d51fbe641
decode bytecode in string
...
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-04-07 11:14:29 +02:00
Florian Brandes
d630dd854d
make list checks consistent
...
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-04-07 11:14:29 +02:00
florian on nixos (Florian Brandes)
e34bd748fc
add config options and documentation
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
2022-04-07 11:14:29 +02:00
florian on nixos (Florian Brandes)
7577ac0d10
renaming of documents to align with front end
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
2022-04-07 11:14:29 +02:00
florian on nixos (Florian Brandes)
866aa55b92
run black
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
2022-04-07 11:14:29 +02:00
florian on nixos (Florian Brandes)
11c34e496a
add trailing commas
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
2022-04-07 11:14:29 +02:00
florian on nixos (Florian Brandes)
0c1e8edeca
reorder imports
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
2022-04-07 11:14:29 +02:00
florian on nixos (Florian Brandes)
f0f4a103f0
skip test if dir exists
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
2022-04-06 21:16:41 +02:00
florian on nixos (Florian Brandes)
7736934e43
more work on barcode
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
2022-04-06 21:16:41 +02:00
florian on nixos (Florian Brandes)
b787971421
working split pages
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
2022-04-06 21:16:41 +02:00
florian on nixos (Florian Brandes)
aa46b06d95
add first tests for barcode reader
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
2022-04-06 21:16:41 +02:00
Quinn Casey
c26aa56e55
Merge pull request #576 from fantasticle/dev
...
Update regex date match patterns
2022-04-05 09:52:27 -07:00
Daniel Breitlauch
8eb65b070e
adding case-sensitive tests
2022-04-01 21:15:30 +02:00
Fantasticle
d48b835876
remove unnecessary import
2022-03-31 21:25:58 +02:00
Fantasticle
e82b7517ff
add more tests for regex date parser, remove duplicate name
2022-03-31 21:24:57 +02:00
fantasticle
19b370dece
add test for new regex
2022-03-30 23:18:03 +02:00
Trenton Holmes
5a4741dcab
Bumps django to 4.0 and fixes associated issues
2022-03-24 07:39:11 -07:00
Trenton Holmes
e3f8531c2d
Un-pickle and re-pickle the test models to resolve the version difference warning
2022-03-22 09:37:17 +01:00
Johann Bauer
5efa551946
Fix model test
2022-03-21 18:53:53 +01:00
Simon Siebert
58fbfb2e17
Fixing Test
2022-03-14 19:03:09 +01:00