forked from frappe/frappe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Notification test in Postgres (frappe#7044)
- Loading branch information
1 parent
94ea028
commit b61a37a
Showing
12 changed files
with
63 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,21 +104,24 @@ def before_tests(): | |
frappe.clear_cache() | ||
|
||
# complete setup if missing | ||
from frappe.desk.page.setup_wizard.setup_wizard import setup_complete | ||
if not int(frappe.db.get_single_value('System Settings', 'setup_complete') or 0): | ||
setup_complete({ | ||
"language" :"English", | ||
"email" :"[email protected]", | ||
"full_name" :"Test User", | ||
"password" :"test", | ||
"country" :"United States", | ||
"timezone" :"America/New_York", | ||
"currency" :"USD" | ||
}) | ||
complete_setup_wizard() | ||
|
||
frappe.db.commit() | ||
frappe.clear_cache() | ||
|
||
def complete_setup_wizard(): | ||
from frappe.desk.page.setup_wizard.setup_wizard import setup_complete | ||
setup_complete({ | ||
"language" :"English", | ||
"email" :"[email protected]", | ||
"full_name" :"Test User", | ||
"password" :"test", | ||
"country" :"United States", | ||
"timezone" :"America/New_York", | ||
"currency" :"USD" | ||
}) | ||
|
||
def import_country_and_currency(): | ||
from frappe.geo.country_info import get_all | ||
from frappe.utils import update_progress_bar | ||
|
Binary file not shown.