diff options
| author | Ülgen Sarıkavak <ulgensrkvk@gmail.com> | 2025-11-03 01:17:24 +0300 |
|---|---|---|
| committer | Saptak Sengupta <saptak013@gmail.com> | 2025-11-24 16:36:48 +0530 |
| commit | af8be6402ff5a76c7193a21d4b3557e470012936 (patch) | |
| tree | 7fe7bdde11bfe4d8dab0826bde45c2a1481b4d3b /fundraising | |
| parent | ddf333258f45215f1afe54aa6dd0d0884e37e69f (diff) | |
Make use of Pathlib's "/"
It provides a cleaner and easier to read experience, comparing to .joinpath()
Diffstat (limited to 'fundraising')
| -rw-r--r-- | fundraising/tests/test_views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fundraising/tests/test_views.py b/fundraising/tests/test_views.py index c748ae72..c43fc1f3 100644 --- a/fundraising/tests/test_views.py +++ b/fundraising/tests/test_views.py @@ -262,7 +262,7 @@ class TestWebhooks(ReleaseMixin, TestCase): ) def stripe_data(self, filename): - file_path = settings.BASE_DIR.joinpath(f"fundraising/test_data/{filename}.json") + file_path = settings.BASE_DIR / f"fundraising/test_data/{filename}.json" with file_path.open() as f: data = json.load(f) return stripe.convert_to_stripe_object(data, stripe.api_key, None) |
