diff options
author | Miroslav Šedivý <[email protected]> | 2022-12-02 22:04:23 +0100 |
---|---|---|
committer | Miroslav Šedivý <[email protected]> | 2022-12-02 22:04:23 +0100 |
commit | 325cc917d5ad14b130b156d23b7adca46499dc24 (patch) | |
tree | 247b41199512db9693d00baf7522602805e31c3f /tests/test_status.py | |
parent | c796cf39b01e38fe381fb4743988da991b072183 (diff) | |
download | mastodon.py-325cc917d5ad14b130b156d23b7adca46499dc24.tar.gz |
refactor: use f-strings
Diffstat (limited to 'tests/test_status.py')
-rw-r--r-- | tests/test_status.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_status.py b/tests/test_status.py index 8461bc3..56e7397 100644 --- a/tests/test_status.py +++ b/tests/test_status.py | |||
@@ -203,7 +203,7 @@ def test_scheduled_status_long_part1(api): | |||
203 | else: | 203 | else: |
204 | the_medium_term_future = datetime.datetime.now() + datetime.timedelta(minutes=6) | 204 | the_medium_term_future = datetime.datetime.now() + datetime.timedelta(minutes=6) |
205 | pickle.dump(the_medium_term_future.timestamp(), open("tests/cassettes_special/test_scheduled_status_long_datetimeobjects.pkl", 'wb')) | 205 | pickle.dump(the_medium_term_future.timestamp(), open("tests/cassettes_special/test_scheduled_status_long_datetimeobjects.pkl", 'wb')) |
206 | scheduled_toot = api.status_post("please ensure maximum headroom at " + str(the_medium_term_future), scheduled_at=the_medium_term_future) | 206 | scheduled_toot = api.status_post(f"please ensure maximum headroom at {the_medium_term_future}", scheduled_at=the_medium_term_future) |
207 | scheduled_toot_list = api.scheduled_statuses() | 207 | scheduled_toot_list = api.scheduled_statuses() |
208 | assert scheduled_toot.id in map(lambda x: x.id, scheduled_toot_list) | 208 | assert scheduled_toot.id in map(lambda x: x.id, scheduled_toot_list) |
209 | pickle.dump(scheduled_toot.params.text, open("tests/cassettes_special/test_scheduled_status_long_text.pkl", 'wb')) | 209 | pickle.dump(scheduled_toot.params.text, open("tests/cassettes_special/test_scheduled_status_long_text.pkl", 'wb')) |