summaryrefslogtreecommitdiff
path: root/fundraising
diff options
context:
space:
mode:
authorÜlgen Sarıkavak <ulgensrkvk@gmail.com>2025-11-03 01:17:24 +0300
committerSaptak Sengupta <saptak013@gmail.com>2025-11-24 16:36:48 +0530
commitaf8be6402ff5a76c7193a21d4b3557e470012936 (patch)
tree7fe7bdde11bfe4d8dab0826bde45c2a1481b4d3b /fundraising
parentddf333258f45215f1afe54aa6dd0d0884e37e69f (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.py2
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)