From 5c313e58dedbbb3497d1531a4f6d57f5f19f0c7c Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Tue, 7 Nov 2023 15:16:28 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- setup.py | 4 +--- tests/test_requests.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index ac8217a..4f78e9e 100755 --- a/setup.py +++ b/setup.py @@ -16,9 +16,7 @@ except IndexError: raise RuntimeError("Unable to determine version.") -with open("README.rst") as file: - long_description = file.read() - +long_description = pathlib.Path("README.rst").read_text() setuptools.setup( name=name, version=version, diff --git a/tests/test_requests.py b/tests/test_requests.py index 3868b2d..82deb7b 100755 --- a/tests/test_requests.py +++ b/tests/test_requests.py @@ -36,7 +36,7 @@ def test_make_query_full(): assert query["interval"] == 60 assert query["from"] == "2019-10-09" assert query["till"] == "2019-11-12" - assert query["iss.only"] == f"new_table,history.cursor" + assert query["iss.only"] == "new_table,history.cursor" assert query["new_table.columns"] == "4,a"