From 0ca1e27b489afe15680337a6f1992f5b71b10823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= Date: Mon, 28 Aug 2023 13:08:11 -0600 Subject: [PATCH] Make linter happy --- singer_sdk/streams/core.py | 2 +- tests/core/test_streams.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/singer_sdk/streams/core.py b/singer_sdk/streams/core.py index 798387295..4c3adb225 100644 --- a/singer_sdk/streams/core.py +++ b/singer_sdk/streams/core.py @@ -221,7 +221,7 @@ def is_timestamp_replication_key(self) -> bool: return False type_dict = self.schema.get("properties", {}).get(self.replication_key) if type_dict is None: - msg = f"Field '{self.replication_key}' is not in schema for stream '{self.name}'" + msg = f"Field '{self.replication_key}' is not in schema for stream '{self.name}'" # noqa: E501 raise InvalidReplicationKeyException(msg) return is_datetime_type(type_dict) diff --git a/tests/core/test_streams.py b/tests/core/test_streams.py index efa4066eb..a3a451086 100644 --- a/tests/core/test_streams.py +++ b/tests/core/test_streams.py @@ -289,7 +289,8 @@ class InvalidReplicationKeyStream(SimpleTestStream): with pytest.raises( InvalidReplicationKeyException, match=( - f"Field '{stream.replication_key}' is not in schema for stream '{stream.name}'" + f"Field '{stream.replication_key}' is not in schema for stream " + f"'{stream.name}'" ), ): _check = stream.is_timestamp_replication_key