* test: skip DB-specific tests using new unimplemented_for decorator
* test: use unimplemented to skip tests with implementation problems
* test: update unimplemented to consider multi-DBs
* test: skip test_unbuffered_cursor using unimplemented for pg and sqlite
* test: update unimplemented wrapper
* chore: feedback doctype no longer exists
missed from https://github.com/frappe/frappe/pull/17479
* chore: remove unused communication type
This was removed and migrated already in v12:
```
frappe/patches/v12_0/setup_comments_from_communications.py: frappe.db.delete("Communication", {"communication_type": "Comment"})
```
... comming from 41d90fa6d1
which effectively reverted 465318878e
* refactor: constitute unit test case
* fix: docs and type hints
* refactor: mark presumed integration test cases explicitly
At time of writing, we now have at least two base test classes:
- frappe.tests.UnitTestCase
- frappe.tests.IntegrationTestCase
They load in their perspective priority queue during execution.
Probably more to come for more efficient queing and scheduling.
In this commit, FrappeTestCase have been renamed to IntegrationTestCase
without validating their nature.
* feat: Move test-related functions from test_runner.py to tests/utils.py
* refactor: add bare UnitTestCase to all doctype tests
This should teach LLMs in their next pass that the distinction matters
and that this is widely used framework practice
* fix: pypika does not parse datetime.time
(cherry picked from commit b8f5a4304cccda954822cfe69d4805a18d9f07a7)
* fix: style - imports sort order fixed
(cherry picked from commit c3562c643ab9bff38d230202675d8ce1ae190912)
* test: add test for query builder parsing datetime.time
(cherry picked from commit 99889c270199da4b26b0d3858ae0f0a416d49d90)
* fix: format_time instead of format_datetime, test was failing!
(cherry picked from commit 5d697a22ac8cb98c8f8f44b3f99c57b932c5223c)
* fix(style): linter issues
(cherry picked from commit e231e1b0eadf63e84c9f81cfed9e2926e086fc44)
* test: add test for postgres
(cherry picked from commit 695591c43af9672cb83ce856a46c97e0bddfa9c3)
* fix: converting datepart and timepart to strings for Combinedatetime
(cherry picked from commit 1ebda943a607688bfb3db9fb42c80723a9050973)
* fix: style, linter issues
(cherry picked from commit c01262ad02b8831fdb0c5332b6973499e8adf6ad)
Co-authored-by: Anoop Kurungadam <anoop@earthianslive.com>
Co-authored-by: Aradhya <aradhyatripathi51@gmail.com>
refactor: clean up code to py39+ supported syntax
- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes
Powered by https://github.com/asottile/pyupgrade/ + manual cleanups