summaryrefslogtreecommitdiff
path: root/tests/test_timeseries.py
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2021-11-30 17:20:43 +0200
committerGitHub <noreply@github.com>2021-11-30 17:20:43 +0200
commitfbe87acf96aab583975ed3371423eb20602eccaf (patch)
treeb873c3356b9c96e826c4ab0bb3efc339a00838e4 /tests/test_timeseries.py
parent4db85ef574a64a2b230a3ae1ff19c9d04065a114 (diff)
downloadredis-py-fbe87acf96aab583975ed3371423eb20602eccaf.tar.gz
Pyupgrade + flynt + f-strings (#1759)
@akx Thank you so much for this! Thanks again for introducing me to a new tool that I'm sliding into my workflow as well.
Diffstat (limited to 'tests/test_timeseries.py')
-rw-r--r--tests/test_timeseries.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_timeseries.py b/tests/test_timeseries.py
index c0fb09e..0743357 100644
--- a/tests/test_timeseries.py
+++ b/tests/test_timeseries.py
@@ -31,7 +31,7 @@ def test_create(client):
def test_create_duplicate_policy(client):
# Test for duplicate policy
for duplicate_policy in ["block", "last", "first", "min", "max"]:
- ts_name = "time-serie-ooo-{0}".format(duplicate_policy)
+ ts_name = f"time-serie-ooo-{duplicate_policy}"
assert client.ts().create(ts_name, duplicate_policy=duplicate_policy)
info = client.ts().info(ts_name)
assert duplicate_policy == info.duplicate_policy