zulip/corporate
Vishnu KS 19b25b3fa3 billing tests: Remove unnecessary orjson.dumps of params.
This should have been in https://github.com/zulip/zulip/pull/18066.

The reason, the tests were not failing inspite of the params being
json encoded was because pretty much all these tests did not test
the functionality of the endpoint. Rather they were testing things
like whether the user has the right to access the endpoint and all.
So the value of the params did not matter.

The only one test which is an exception is test_replace_payment_source.
Even though a json encoded token was passed to an endpoint that
expecteda string, the test continued to work becausethe fixtures were
not updated for the test in that PR, so instead of sending an incorrect
json encoded token to stripe endpoint it was sending the correct string
token. Now that we removed the json.dumps of token, we no longer have to
update the fixtures.

I have run the tests with --generate-stripe-fixtures set to True and all
the tests are passing. Not including the fixture changes since the tests
conntinue to work the same with both the existing and new fixtures.
2021-07-05 18:06:13 -07:00
..
lib billing: Refactor BillingError to subclass JsonableError. 2021-07-05 10:43:49 -07:00
management billing: Do subscription management in-house instead of with Stripe Billing. 2018-12-22 13:39:30 -08:00
migrations billing: Move exempt_from_from_license_number_check to Customer model. 2021-06-18 14:05:42 -07:00
tests billing tests: Remove unnecessary orjson.dumps of params. 2021-07-05 18:06:13 -07:00
__init__.py Create non-localserver "corporate" app with jobs pages. 2013-11-06 12:07:31 -05:00
models.py billing: Fix the type annotation of Customer.stripe_customer_id. 2021-07-02 12:04:41 -07:00
urls.py billing: Use PATCH request for changing plan status. 2021-05-14 15:10:02 -07:00
views.py billing: Refactor BillingError to subclass JsonableError. 2021-07-05 10:43:49 -07:00