chrisbroderick
eca2255f56
Test for filename using diaretics
2022-09-08 10:05:09 +01:00
chrisbroderick
357241e269
Refactor to make the methods more generic and able to be used to build
...
any kind of email
2022-09-07 08:48:32 +01:00
chrisbroderick
572ffd5acf
Handle ignored emails explicitly using exceptions.
...
Support the flag on IgnoreEmail model to control deleting the email if
ignored.
2022-09-06 19:40:35 +01:00
chrisbroderick
4e001c7f15
test utility methods to simplify more complex tests
2022-09-02 22:11:19 +01:00
Alex
3a13bbfeef
Fix. Add test markdown and rewrite for last markdown is working
2022-08-08 20:20:00 +07:00
Alex
cf5be66fae
Fix. Fix problem wich version package in requirements and add test markdown and rewrite for new markdown
2022-08-06 18:34:16 +07:00
Alex
a28569a984
Fix. Fix problem wich version package in requirements and add test markdown
2022-07-27 19:58:39 +07:00
Martin Whitehouse
44f068d1b8
re-apply formatting
2022-07-22 03:30:35 +02:00
Martin Whitehouse
25542f929e
Initial isort configuration
...
Will fail build if imports are not sorted correctly
2022-07-22 03:26:41 +02:00
Martin Whitehouse
844c317e19
Formatting fixes
2022-07-14 09:19:11 +02:00
Benbb96
e47170858e
Create two new tests for ticket followups and followup attachments + adapt one test (needed to use freezegun)
2022-06-30 23:43:22 +02:00
Martin Whitehouse
6d1d5d82b3
Skip failing tests
...
Object not available for patching
2022-06-20 18:20:01 +02:00
Martin Whitehouse
2c1466e01e
Disable failing checks
...
Iterating over a cc_list and comparing to the outbox list will not work.
Need to re-work to ensure indexes match up
2022-06-20 18:19:44 +02:00
Martin Whitehouse
8118fd83b7
Fix autofill utf-8 test
2022-06-20 18:03:39 +02:00
Martin Whitehouse
dd7ef6f0ed
Fix autofill test
2022-06-20 17:50:49 +02:00
Martin Whitehouse
670ae9d0a5
Fix password assignments
2022-06-20 17:36:32 +02:00
Martin Whitehouse
f18531acb0
Fix url check
2022-06-20 17:35:40 +02:00
Martin Whitehouse
db358ceeaf
Set due date as member and use throughout
2022-06-20 17:35:28 +02:00
Martin Whitehouse
437d5b81c4
Fix failing tests
2022-06-20 17:26:52 +02:00
Martin Whitehouse
93bb43bf1d
Remove mock
...
Can't import model until the test body
2022-06-20 16:58:43 +02:00
Martin Whitehouse
2910664950
Fix path for tests
2022-06-20 16:34:32 +02:00
Garret Wassermann
b8511dd70b
Fix conflicts for Django 4 support
2022-04-23 02:23:51 -04:00
Garret Wassermann
3ed6c68046
Update to 0.3.4 bugfix release
2022-04-23 02:06:35 -04:00
Garret Wassermann
5e8f5fed62
Fixing some unit tests
2022-04-22 14:52:51 -04:00
Benbb96
9320df0268
Fix a bug I introduced in earlier commit + fix one test
2022-04-14 23:30:42 +02:00
Benbb96
7e5ff05b02
Update documentation
2022-04-11 00:23:22 +02:00
Benbb96
31acfb11dd
Add tests for the API
2022-04-11 00:16:54 +02:00
Nick McCullum
358080926c
Added Django 4 support.
2022-03-16 22:29:09 -04:00
Garret Wassermann
7bcee909ef
give duplicate test a slightly more descriptive unique name
2022-02-22 01:13:24 -05:00
code-review-doctor
3206fd61c9
Fix issue duplicate-test-names found at https://codereview.doctor
2022-02-21 09:48:57 +00:00
Timothy Hobbs
b708b786d4
Add failing test for hidden field query args
2021-08-19 22:00:06 +02:00
Timothy Hobbs
f4b7e899fa
Change query arg delimiter from ; to &
2021-08-19 22:00:01 +02:00
Arkadiy Korotaev
86c4ceb1a8
fix(emails): Avoid 'value too long for type character varying(200) ' error when incoming message has too long subject
2021-07-29 13:14:42 +02:00
Arkadiy Korotaev
2b4c82fd1b
fix(email): Add ability to attach full first email text to avoid losing forwards, and to save .eml files for any incoming mesages, plus fix tests and some minor bugs
2021-04-19 21:15:24 +02:00
Tom Weber
d06626c0d6
Bug Fix test for string check
2021-02-10 18:09:46 -07:00
Arkadiy Korotaev
d2a7bad576
ifix(email): Create the log file only if required
...
+ update some translations
+ update some tests to correctly mock unlink as well
+ fix flake8 errors and sort the imports in email module
+ update some log messages to pass base message + parameters instead of rendered string (works better with Sentry)
2020-11-25 10:31:40 +01:00
Arkadiy Korotaev
4955d983a2
fix(tests): Run tests without the socks components and document their usage
2020-11-24 11:21:51 +01:00
bbe
177ba8f963
Add test for the add_email_to_ticketcc_if_not_in ticket function
2020-10-31 17:54:29 +01:00
bbe
1b8a11f74b
Create test for the merge view
2020-10-30 23:17:40 +01:00
Tom Weber
14b53bb498
Updated references to functions being tested and corrected test named test_get_email_quiet_option
2020-10-13 18:30:01 -06:00
Garret Wassermann
2f788f2597
Merge 0.2.22 bugfix release updates, update copyright year in license, specify python 3.6 or above in setup
2020-07-30 04:46:15 -04:00
Garret Wassermann
7eae003e5d
Use python getadddresses() function to better handle UTF-8, to address #832
2020-07-27 20:43:05 -04:00
Garret Wassermann
5ad0743722
Merge in 0.2.21 bugfix
2020-04-15 07:38:52 -04:00
Andrew Denisenko
2f4d91c22d
Fill followup user field if authenticated user submits ticket
2020-03-03 23:39:02 +02:00
Timothy Hobbs
3d7860b5a3
pycodestyle fixes
2020-02-11 16:47:33 +01:00
Timothy Hobbs
bb9d886eea
Fix query by uncatigorized
2020-02-11 16:44:18 +01:00
Timothy Hobbs
9963a3fe5d
Fix utf decoding bug in email parsing code
...
For some reason mozilla thunderbird sometimes marks email parts as 8bit
even though they are utf-8. I guess the best way to work around this is
to add a try-catch block because this really cannot be predicted.
2020-01-23 16:00:01 +01:00
Timothy Hobbs
2f8b4acf64
Fix pycodestyle errors
2020-01-20 14:17:23 +01:00
Timothy Hobbs
90621f575d
Fix ironic ticket creation loop when submitter email == queue email
2020-01-20 13:23:32 +01:00
Timothy Hobbs
0b50b14449
Add kb tests
2020-01-20 13:23:31 +01:00
Timothy Hobbs
24b8e45f66
Add ability to hide fields in public ticket submission form using kwargs
2020-01-20 13:07:45 +01:00
Timothy Hobbs
ef9c4c589a
Fix linting errors
2020-01-20 13:03:44 +01:00
Timothy Hobbs
b96d725239
Refactor query code into customizable class
2020-01-20 13:03:44 +01:00
Timothy Hobbs
8985fc759d
Remove hardcoded pk from test suit
2020-01-20 13:03:42 +01:00
Garret Wassermann
860a30486c
Comments pass PEP-8
2019-12-17 22:38:03 -05:00
Garret Wassermann
103b762779
Disable broken test_autofill, unclear why it is giving integrity errors when it was working just fine not long ago, is this from a django change?
2019-12-17 22:35:32 -05:00
Garret Wassermann
7dbf1c3b68
Possibly fix test_autofill test case integrity fail
2019-12-17 09:11:37 -05:00
Timothy Hobbs
61dd12abd9
Fix tests
2019-10-16 17:36:55 +02:00
Garret Wassermann
182d553356
Fix some renaming issues from most recent merge
2019-10-12 18:58:50 -04:00
Garret Wassermann
7f27eb9428
Merge 0.2.17 release into develop
2019-08-27 21:53:25 -04:00
Janne Alatalo
042e766be1
Add a test that checks that LOGIN_URL can be a view name
...
This test requires that the admin urls are added to the test
configuration.
2019-08-27 13:04:00 +03:00
Janne Alatalo
0a43b9a160
Add support for custom login handler
...
The custom login handler can be configured by setting the
settings.LOGIN_URL variable. If LOGIN_URL is None or 'helpdesk:login',
the app uses the default helpdesk login system. LOGIN_URL can be a view
name or raw url.
2019-08-27 13:02:07 +03:00
Garret Wassermann
0de263280f
Merged 0.2.16 bugfixes
2019-05-25 01:25:39 -04:00
Garret Wassermann
94eab853af
Fix email test, example didn't update the email subject
2019-04-01 22:17:32 -04:00
Garret Wassermann
9ca7f9fb46
Merge remote-tracking branch 'upstream/develop' into develop
2019-04-01 21:29:18 -04:00
Timothy Hobbs
6886a7920e
Specify encoding of html email bodies explicitly
2019-03-26 13:59:01 +01:00
Timothy Hobbs
f3ffebc261
Fix test regression from pr #731
...
https://github.com/django-helpdesk/django-helpdesk/pull/731/files#diff-dc9aca3bb03b3531dc114813db32f3c7R56
2019-03-25 17:13:10 +01:00
Cedric Carrard
9c85b8e8c1
fix redirect loop
2019-03-20 16:12:19 +01:00
Cedric Carrard
e4d6a54659
fix public homepage with kb_category but without kb disabled
2019-03-15 14:10:43 +01:00
Garret Wassermann
6ce11266af
Fix broken test with blank body and attachment
2019-03-10 00:04:41 -05:00
Jachym Cepicky
ce82ddb9f9
Merge branch 'develop' into images_for_kb
2019-03-09 23:46:26 +01:00
Jachym Cepicky
db0f286989
adding support for images as knowledgebase attachment
2019-03-09 23:41:26 +01:00
Garret Wassermann
27cf481c0b
Merge pull request #733 from auto-mat/utf
...
Add test for #732 , unicode characters in description
2019-03-09 14:51:29 -05:00
Jachym Cepicky
9127275557
adding support for images as knowledgebase attachment
2019-03-09 18:14:11 +01:00
Timothy Hobbs
5e9fed2d46
Add failing test for #732
2019-03-09 00:00:32 +01:00
Garret Wassermann
37be1346cd
Merge pull request #729 from auto-mat/quoted-printable
...
Decode quoted-printable html bodies when getting email
2019-03-06 11:27:10 -05:00
Jachym Cepicky
57018e1aa0
adding tests
2019-03-06 15:03:47 +01:00
Timothy Hobbs
2c3ce8903f
Decode quoted-printable html bodies when getting email
...
Fixes #719
2019-03-06 14:21:30 +01:00
Garret Wassermann
4fb6c40c4e
Merge pull request #717 from OpenGeoLabs/time_tracking
...
Basic support for tracking time spent on tickets and follow-ups
2019-02-24 15:18:01 -05:00
Jachym Cepicky
4bd54e8bf3
adding tests
2019-02-24 20:46:48 +01:00
Garret Wassermann
a7505a1ecd
Merge pull request #720 from auto-mat/issue-700-fail
...
Add failing test case for issue-700 emails without bodies
2019-02-15 17:01:38 -05:00
Timothy Hobbs
4e35082475
Add failing test case for issue-700 emails without bodies
2019-02-15 15:11:06 +01:00
Jachym Cepicky
8cc0ca47f8
display list of queues only for users with right permissions
2019-02-05 15:44:06 +01:00
Garret Wassermann
43ed3ac773
PEP-8 fixes for mail threading merge
2018-12-28 11:32:49 -05:00
Garret Wassermann
5f0d22a692
Merge brunotikami/master for user and email threading, for #385 and #375
2018-12-28 10:53:28 -05:00
Garret Wassermann
696d10db12
Remove old python2/six code
2018-12-28 03:13:52 -05:00
Timothy Hobbs
9a45d28c95
More refactors of get_email.py
2018-10-31 16:30:19 +01:00
Timothy Hobbs
3f6ae1aefe
Transform UserSettings into a normal django model
2018-10-25 17:54:37 +02:00
Timothy Hobbs
c1750a7461
Require a secret key for viewing tickets unless HELPDESK_VIEW_A_TICKET_PUBLIC is set
...
Fixes #629 , #639
2018-09-08 21:29:59 +02:00
Timothy Hobbs
58cc18d049
Only staff users should be given access to the RSS feeds
2018-09-03 20:29:22 +02:00
Timothy Hobbs
13539e3056
Fix tests
2018-08-30 12:03:54 +02:00
Garret Wassermann
c70cf04e4d
Fix codestyle errors, use currying instead of lambdas for determing user access
2018-07-19 00:06:57 -04:00
Garret Wassermann
c71355cfdc
is_authenticated is a bool now not a function
2018-03-04 04:24:30 -05:00
Garret Wassermann
54a6b1d21b
Merge 0.2.7 bugfixes
2018-03-04 04:01:48 -05:00
Garret Wassermann
95ee61fe90
Fix PEP8 errors
2018-02-16 05:04:10 -05:00
Garret Wassermann
113880bc3a
Compare user IDs to determine if same user, and add simple test case, to fix #588
2018-02-16 05:00:22 -05:00
Garret Wassermann
75f54dd233
Testing quicktest.py
2018-01-11 02:19:49 -05:00
Garret Wassermann
31b49ab2f6
Merge branch 'master' into develop
2017-12-28 09:32:14 -05:00
Garret Wassermann
aa63e8f299
Really fix py 2 imp/importlib
2017-12-28 09:26:14 -05:00
Garret Wassermann
4b78704180
Fix error on python 2
2017-12-28 09:22:57 -05:00