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

37: add example script to create or update a form #83

Merged
merged 1 commit into from
May 3, 2024

Conversation

lindsay-stevens
Copy link
Contributor

Closes #37

What has been done to verify that this works as intended?

Tested with Central staging server.

Why is this the best possible solution? Were any other approaches considered?

Although it boils down to one or two lines, the script shows users how to apply that as a (hopefully) useful script.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

New example script. Though while doing it I noticed a test bug for which a fix is included.

Do we need any specific form for testing your changes? If so, please attach one.

Any form would work.

Does this change require updates to documentation? If so, please file an issue here and include the link below.

Updated docs to refer to the new script.

Before submitting this PR, please make sure you have:

  • included test cases for core behavior and edge cases in tests
  • run python -m unittest and verified all tests pass
  • run ruff format pyodk tests and ruff check pyodk tests to lint code
  • verified that any code or assets from external sources are properly credited in comments

- fix: template token copypasta in tests (token from MD template).
- chg: use create_ignore_duplicate_error in tests, because that
  would avoid ignoring issues like the above (invalid form).
@lognaturel lognaturel merged commit d7a4f7f into getodk:master May 3, 2024
4 checks passed
@lindsay-stevens lindsay-stevens deleted the pyodk-37 branch May 4, 2024 06:07
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

Successfully merging this pull request may close these issues.

New example script for client.forms.update
2 participants