diff --git a/apps/notification/tests/integration_tests/create_global_templates.py b/apps/notification/tests/integration_tests/create_global_templates.py index c71e73b..3501cd7 100644 --- a/apps/notification/tests/integration_tests/create_global_templates.py +++ b/apps/notification/tests/integration_tests/create_global_templates.py @@ -995,6 +995,93 @@ class GlobalTemplateCreator: return success_cn and success_en + async def create_job_opportunity_template(self): + """create job opportunity notification template""" + print("\n📝 create job opportunity notification template...") + print("🔗 Deep link format: {{job_deep_link_url}}") + # TODO: the deep link should be modified and updated + print(" Example: https://freeleaps-alpha.com/jobs/{{job_id}}?source=email&user={{user_id}}&token={{auth_token}}") + print(" This will redirect to login if needed, then to the specific job posting") + + # Chinese version (region: 1) + template_data_cn = { + "template_id": "job_opportunity_notification", + "region": 1, + "subject": "新的工作机会 - {{candidate_name}}", + "body": """
亲爱的 {{candidate_name}},
+ +在 {{company_domain}} 上有一个新的职位发布,可能符合您的个人资料。点击此链接或登录 {{company_domain}} 查看详情。
+ +祝好!
Freeleaps 团队
freeleaps
++ We make software development the easiest ever. +
+Dear {{candidate_name}},
+ +There is a new job posting on {{company_domain}}. It could be something matching your profile. Click this link or log in to {{company_domain}} to check it out.
+ + + +Best regards,
Freeleaps Team
freeleaps
++ We make software development the easiest ever. +
+