Commit graph

14 commits

Author SHA1 Message Date
AarDG10
7693e6970d test(formatter): add test to check escaping 2026-04-27 12:06:20 +05:30
David Arnold
c114e5fae8
refactor: unit vs integration treewide (#27992)
* 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
2024-10-06 09:43:36 +00:00
Ankush Menat
3e2d2a703a test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
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
2022-07-01 11:51:05 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Kenneth Sequeira
48d1d11656 fix: modified original test 2021-07-20 21:06:27 +05:30
Kenneth Sequeira
e7e8fcd622 fix: old currency test 2021-07-20 20:32:24 +05:30
Kenneth Sequeira
e0e1c15d76 fix: remove redundant code 2021-07-20 20:10:15 +05:30
Mohammad Hasnain Mohsin Rajan
64e37d6ab9
chore: debug tests 2021-06-29 10:16:32 +05:30
Mohammad Hasnain Mohsin Rajan
4b0c67f57c
chore: debug tests 2021-06-28 18:43:03 +05:30
Mohammad Hasnain Mohsin Rajan
61deecbd7c
chore: fix tests 2021-06-28 18:30:55 +05:30
Kenneth Sequeira
f5e40141af fix: readding test for test_formatter 2021-06-15 22:46:05 +05:30
Kenneth Sequeira
4bafae6e38 fix: add test cases 2021-06-12 22:04:00 +05:30
Suraj Shetty
310233c56a
fix: Show default currency as a fallback for currency fieldtype (#8944)
* fix: Show default currency as a fallback for currency fieldtype

* test: Add a test for currency formatting
2019-12-14 17:34:04 +05:30