Repository: fossasia/open-event-server

Issue:
chore(deps): bump humanize from 3.5.0 to 3.6.0
Bumps [humanize](https://github.com/jmoiron/humanize) from 3.5.0 to 3.6.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/jmoiron/humanize/releases">humanize's releases</a>.</em></p>
<blockquote>
<h2>3.6.0</h2>
<h2>Added</h2>
<ul>
<li>Add pluralization for intword (<a href="https://github-redirect.dependabot.com/jmoiron/humanize/issues/202">#202</a>) <a href="https://github.com/mondeja"><code>@​mondeja</code></a></li>
<li>Add es_ES '%s and %s' translation (<a href="https://github-redirect.dependabot.com/jmoiron/humanize/issues/206">#206</a>) <a href="https://github.com/mondeja"><code>@​mondeja</code></a></li>
<li>Add gender support for ordinals (<a href="https://github-redirect.dependabot.com/jmoiron/humanize/issues/207">#207</a>) <a href="https://github.com/mondeja"><code>@​mondeja</code></a></li>
<li>Add type hints for all exposed natural* functions (<a href="https://github-redirect.dependabot.com/jmoiron/humanize/issues/208">#208</a>) <a href="https://github.com/WhyNotHugo"><code>@​WhyNotHugo</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/jmoiron/humanize/commit/4bef4f2ddc8f7c5afac9ca8eb4e60a08833912dc"><code>4bef4f2</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/jmoiron/humanize/issues/207">#207</a> from mondeja/fix-203</li>
<li><a href="https://github.com/jmoiron/humanize/commit/b86bfdad69a8305fab2fd87afb7fedbe39efc52d"><code>b86bfda</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/jmoiron/humanize/issues/208">#208</a> from WhyNotHugo/typing</li>
<li><a href="https://github.com/jmoiron/humanize/commit/05a0c58aac0ad39c0c23b3fdc476b7ee0aef4ff6"><code>05a0c58</code></a> Add type hints for all exposed natural* functions</li>
<li><a href="https://github.com/jmoiron/humanize/commit/99b68f6564435ea9b300cdb4a9b86153d31a6ab5"><code>99b68f6</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/jmoiron/humanize/issues/206">#206</a> from mondeja/es_ES-and</li>
<li><a href="https://github.com/jmoiron/humanize/commit/3c30cf577851b412024eb2e570ff9fbc2596bd21"><code>3c30cf5</code></a> Add gender support for ordinals</li>
<li><a href="https://github.com/jmoiron/humanize/commit/e2e90ee6e349224eb2b1bd17e0c3db7176336469"><code>e2e90ee</code></a> Add es_ES '%s and %s' translation</li>
<li><a href="https://github.com/jmoiron/humanize/commit/b6b0ea5be7ec3e92abfaf5275f9863566836185e"><code>b6b0ea5</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/jmoiron/humanize/issues/202">#202</a> from mondeja/fix-193</li>
<li><a href="https://github.com/jmoiron/humanize/commit/9c50eb2c39766ee21760a3a2b14e1190db1c84f2"><code>9c50eb2</code></a> Add tests for intword pluralization</li>
<li><a href="https://github.com/jmoiron/humanize/commit/4a79544ab3a7953c1252ec47bacc55f136efde81"><code>4a79544</code></a> Unfuzzy ca_ES translations</li>
<li><a href="https://github.com/jmoiron/humanize/commit/eaaf31050abfe225d97db7f1426b22f62b84c973"><code>eaaf310</code></a> Add pluralization for intword</li>
<li>See full diff in <a href="https://github.com/jmoiron/humanize/compare/3.5.0...3.6.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=humanize&package-manager=pip&previous-version=3.5.0&new-version=3.6.0)](https://dependabot.com/compatibility-score/?dependency-name=humanize&package-manager=pip&previous-version=3.5.0&new-version=3.6.0)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
If all status checks pass Dependabot will automatically merge this pull request.

[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)



</details>


Discussion:
# [Codecov](https://codecov.io/gh/fossasia/open-event-server/pull/7984?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fossasia) Report
> Merging [#7984](https://codecov.io/gh/fossasia/open-event-server/pull/7984?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fossasia) (f921072) into [development](https://codecov.io/gh/fossasia/open-event-server/commit/799fae889c81ea633aaecafe7271b054e1fce580?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fossasia) (799fae8) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/fossasia/open-event-server/pull/7984/graphs/tree.svg?width=650&height=150&src=pr&token=HNBiyBrcBU&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fossasia)](https://codecov.io/gh/fossasia/open-event-server/pull/7984?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fossasia)

```diff
@@             Coverage Diff              @@
##           development    #7984   +/-   ##
============================================
  Coverage        66.69%   66.69%           
============================================
  Files              293      293           
  Lines            14906    14906           
============================================
  Hits              9941     9941           
  Misses            4965     4965           
```



------

[Continue to review full report at Codecov](https://codecov.io/gh/fossasia/open-event-server/pull/7984?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fossasia).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fossasia)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/fossasia/open-event-server/pull/7984?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fossasia). Last update [799fae8...f921072](https://codecov.io/gh/fossasia/open-event-server/pull/7984?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fossasia). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fossasia).


Resolving patch:
diff --git a/app/api/schema/settings.py b/app/api/schema/settings.py
--- a/app/api/schema/settings.py
+++ b/app/api/schema/settings.py
@@ -95,6 +95,7 @@ class Meta:
     stripe_publishable_key = fields.Str(dump_only=True)
     stripe_test_client_id = fields.Str(dump_only=True)
     stripe_test_publishable_key = fields.Str(dump_only=True)
+    stripe_mode = fields.Str(dump_only=True)
 
     # PayPal Credentials
     paypal_mode = fields.Str(dump_only=True)
@@ -239,6 +240,7 @@ class Meta:
     stripe_test_client_id = fields.Str(allow_none=True)
     stripe_test_secret_key = fields.Str(allow_none=True)
     stripe_test_publishable_key = fields.Str(allow_none=True)
+    stripe_mode = fields.Str(allow_none=True)
 
     # PayPal Credentials
     paypal_mode = fields.Str(allow_none=True)
diff --git a/app/models/setting.py b/app/models/setting.py
--- a/app/models/setting.py
+++ b/app/models/setting.py
@@ -90,6 +90,7 @@ class Setting(db.Model):
     stripe_test_client_id = db.Column(db.String)
     stripe_test_secret_key = db.Column(db.String)
     stripe_test_publishable_key = db.Column(db.String)
+    stripe_mode = db.Column(db.String)
 
     # AliPay Keys - Stripe Sources
     alipay_secret_key = db.Column(db.String)
diff --git a/migrations/versions/rev-2023-06-12-13:39:49-410e54b84481_.py b/migrations/versions/rev-2023-06-12-13:39:49-410e54b84481_.py
new file mode 100644
--- /dev/null
+++ b/migrations/versions/rev-2023-06-12-13:39:49-410e54b84481_.py
@@ -0,0 +1,27 @@
+"""empty message
+
+Revision ID: 410e54b84481
+Revises: a45167cdc102
+Create Date: 2023-06-12 13:39:49.999962
+
+"""
+
+from alembic import op
+import sqlalchemy as sa
+
+
+# revision identifiers, used by Alembic.
+revision = '410e54b84481'
+down_revision = 'a45167cdc102'
+
+
+def upgrade():
+    # ### commands auto generated by Alembic - please adjust! ###
+    op.add_column('settings', sa.Column('stripe_mode', sa.String(), nullable=True))
+    # ### end Alembic commands ###
+
+
+def downgrade():
+    # ### commands auto generated by Alembic - please adjust! ###
+    op.drop_column('settings', 'stripe_mode')
+    # ### end Alembic commands ###


Test patch:
diff --git a/tests/factories/setting.py b/tests/factories/setting.py
--- a/tests/factories/setting.py
+++ b/tests/factories/setting.py
@@ -60,6 +60,7 @@ class Meta:
     stripe_publishable_key = common.string_
     stripe_test_secret_key = common.string_
     stripe_test_publishable_key = common.string_
+    stripe_mode = 'development'
     # PayPal Credentials
     paypal_mode = 'development'
     paypal_client = common.string_