Raffael Meyer
a7633738ea
Merge branch 'develop' into merge_translated_doctypes
2022-08-13 14:03:32 +02:00
Ankush Menat
0686097de2
fix: get single doc using client.get ( #17817 )
2022-08-13 14:38:06 +05:30
Himanshu
3faaf5f361
Merge branch 'develop' into merge_translated_doctypes
2022-08-12 13:10:49 +01:00
Gavin D'souza
96ed06f1f3
test: Add test for config module
2022-08-12 12:54:00 +05:30
Gavin D'souza
fca29b8f19
test: Add tests for Identicon & gravatar utils
2022-08-11 23:53:21 +05:30
Gavin D'souza
3968c32fa9
test: Add test for lazy_import
2022-08-11 23:53:21 +05:30
Gavin D'souza
0b15f8f9db
test: Add tests for make_random module
2022-08-11 23:53:21 +05:30
Gavin D'souza
cfba07df07
test: Add test for bench_helper module
2022-08-11 23:53:21 +05:30
Himanshu
2aa140d4c3
chore: set correct translation for ui tests
...
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
2022-08-11 13:47:21 +01:00
Himanshu
e68aac866f
Merge branch 'develop' into merge_translated_doctypes
2022-08-10 18:49:04 +01:00
Shariq Ansari
cfb56688e9
refactor: Multi Step Web Form ( #17783 )
2022-08-10 18:05:20 +05:30
Himanshu
85467b3e96
Merge branch 'develop' into merge_translated_doctypes
2022-08-09 15:16:49 +01:00
gavin
1eec239a71
Merge pull request #16621 from gavindsouza/modules-refactor
...
refactor: frappe.modules
2022-08-09 16:28:10 +05:30
Ankush Menat
d711c1fb7e
test: use FrappeTestCase for cleaning up state ( #17768 )
2022-08-09 16:26:40 +05:30
Himanshu
44c2a2e309
Merge branch 'develop' into merge_translated_doctypes
2022-08-09 11:50:32 +01:00
gavin
a14b38cc4e
Merge branch 'develop' into modules-refactor
2022-08-09 16:10:36 +05:30
Gavin D'souza
598359c684
test: Reset requirements for export_doc
2022-08-09 15:57:26 +05:30
Sagar Vora
c82b6e758e
Merge pull request #17681 from resilient-tech/fix-child-perm
...
refactor: improved child table permission check
2022-08-09 10:15:36 +00:00
Ankush Menat
28fc208b51
test: sanitize_html attributes behaviour
2022-08-09 14:47:18 +05:30
Gavin D'souza
208e33afa6
test: Add cleanup for generated files
2022-08-08 15:09:21 +05:30
Gavin D'souza
624c308659
Merge branch 'develop' of github.com:frappe/frappe into modules-refactor
2022-08-08 12:27:11 +05:30
hrwx
b01929405d
refactor: translatable doctypes
2022-08-05 21:38:10 +01:00
gavin
2735d1c558
Merge branch 'develop' into refactor-oauth-tests
2022-08-05 15:37:41 +05:30
Gavin D'souza
e7a16135e0
fix: Setup test_client for each test
2022-08-05 15:12:52 +05:30
Gavin D'souza
7b149d4273
fix: Allow setting kwarg site for make_request test util
2022-08-05 13:54:58 +05:30
Gavin D'souza
b00ae8043f
test: Set sid as client cookie instead of oauth payload
2022-08-05 12:25:04 +05:30
Sagar Vora
f9bfbfec98
perf: reduce DB calls made in get_fetch_values ( #17671 )
...
* perf: reduce DB calls made in `get_fetch_values`
* fix: ensure return value is same as before
* test: add test for `frappe.model.utils.get_fetch_values`
2022-08-05 11:52:37 +05:30
Gavin D'souza
832fbb6c85
chore: Remove dead imports
2022-08-05 11:39:39 +05:30
Gavin D'souza
65273ee828
Merge branch 'develop' of github.com:frappe/frappe into refactor-oauth-tests
2022-08-05 11:38:55 +05:30
Gavin D'souza
060498c3e4
test: Pass sid to requests to maintain a session
2022-08-05 10:41:13 +05:30
Ankush Menat
da872a0edf
feat: modified parser for frappe JS translate syntax
2022-08-04 15:33:02 +05:30
Ankush Menat
cd53466b6a
feat: JS extractor and custom JS parser
2022-08-04 15:19:56 +05:30
Ankush Menat
1425842ef0
refactor: extract python translations using babel
...
RIP my cool handwritten AST code :'(
Few things to note:
1. Publicly documented APIs, they don't support capturing kwargs.
2. We can't use documented "lower level" APIs, we need to go _even lower_.
2022-08-04 15:19:55 +05:30
Ankush Menat
ea836a824a
feat: use AST to extract translation sources
2022-08-04 15:19:55 +05:30
Ankush Menat
015937a03a
test: fix anticipiated test failures
2022-08-04 14:50:24 +05:30
Gavin D'souza
f7d5cb504a
test(oauth-client): Generate new client for each test
2022-08-03 12:00:09 +05:30
Gavin D'souza
7f2c9e84b3
feat(minor): Expose use_cookies kwarg to test client
2022-08-02 17:30:07 +05:30
Gavin D'souza
e32ecb394d
refactor: Oauth20 tests
...
Use App client app directly instead of requests. This removes dependency
on needing a web server running for your tests. Also, contributes to
coverage now. We can see which lines are impacted with each use case.
2022-08-02 17:30:07 +05:30
Sagar Vora
a9b69351e6
test: use different user
2022-08-02 05:02:48 +05:30
Sagar Vora
b66f1d44e3
test: add tests for frappe.get_doc
2022-08-02 04:46:41 +05:30
Sagar Vora
56717602b4
fix: reverse logic for failing permission check
2022-08-02 04:09:01 +05:30
Ankush Menat
2e85a49fd2
refactor: remove test doctype from core ( #17598 )
...
This was commited by mistake, instead of using the test doctype, create
it on demand for tests.
2022-08-01 19:05:13 +05:30
phot0n
a52483f110
Revert "fix: remove integration request check from test_is_set_is_not_set"
...
This reverts commit b3f57f0e7774928df90bdf84c7ec23b5d3be53c8.
2022-07-26 23:17:04 +05:30
phot0n
91b04c2154
test: fix test_set_field_tables
...
removed amount_field from groupby and fields
2022-07-26 23:17:04 +05:30
phot0n
5c2cfdd1e9
fix: remove integration request check from test_is_set_is_not_set
2022-07-26 15:11:56 +05:30
Gavin D'souza
d1fbab1c45
test(db): Add tests for untested db methods
2022-07-22 13:30:47 +05:30
Gavin D'souza
2bef29bb46
chore: Deprecate backup script + minor refactors
2022-07-22 13:21:29 +05:30
Gavin D'souza
bcfa8c276e
fix: Set default port attribute for Database classes
...
db.default_port wil be available as a class attribute to hold defaults
for DB types.
Usage: frappe.conf.db_port or frappe.db.default_port
Why: I couldn't run the mariadb command because the defaults aren't set
for my system. server is remote / containerized. Setting port in
equivalent mysql command fixes this.
2022-07-22 13:16:26 +05:30
gavin
d285ce910f
Merge branch 'develop' into mariadb-client-refactor
2022-07-22 12:11:54 +05:30
Gavin D'souza
63e618c709
test: More resilient tests for sequences
2022-07-22 12:11:01 +05:30