Skip to content

Commit

Permalink
Make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Aug 28, 2023
1 parent 8b1da60 commit 0ca1e27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion singer_sdk/streams/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 2 additions & 1 deletion tests/core/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ca1e27

Please sign in to comment.