Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to copy an application if language is English. #27

Open
uchan-nos opened this issue Dec 21, 2017 · 0 comments
Open

Failed to copy an application if language is English. #27

uchan-nos opened this issue Dec 21, 2017 · 0 comments

Comments

@uchan-nos
Copy link
Contributor

uchan-nos commented Dec 21, 2017

I found that tests/application_settings/test_administrator.py fails if the language setting of the user configured in account.yaml is English.

I'm guessing that the cause is Administrator.create_application creates an application containing a field named Record_number in English setting.
The test assumes the application contains Japanese field code レコード番号, so it fails.

created = self.create_application(app_name, space_id, thread_id)

Test result:

$ python3 -m unittest tests/application_settings/test_administrator.py
E....You have to delete the application from the application administration view.

======================================================================
ERROR: test_copy_application (tests.application_settings.test_administrator.TestGeneral)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/c/Users/uchan/workspace/github.com/uchan-nos/pykintone/tests/application_settings/test_administrator.py", line 58, in test_copy_application
    created = admin.copy_application("copied application", app.app_id)
  File "/mnt/c/Users/uchan/workspace/github.com/uchan-nos/pykintone/pykintone/application_settings/administrator.py", line 130, in copy_application
    "Error is occurred when creating the the application. \n{0}".format("\n".join(failed_msg))
Exception: Error is occurred when creating the the application.
View Update:The field (code: レコード番号) not found.

----------------------------------------------------------------------
Ran 5 tests in 8.470s

FAILED (errors=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant