Skip to content

forgotten fixes and version #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion devo/__version__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__description__ = "Devo Python Library."
__url__ = "http://www.devo.com"
__version__ = "6.0.1"
__version__ = "6.0.2"
__author__ = "Devo"
__author_email__ = "support@devo.com"
__license__ = "MIT"
Expand Down
14 changes: 7 additions & 7 deletions tests/integration/test_sender_send_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def test_create_lookup_key_index_preserves_structure(setup):
fields = ["a", "b", "c"]

expected_headers = (
'[{"col1":{"type":"str","key":true}},' + '{"col2":{"type":"str"}},{"col3":{"type":"str"}}]'
'[{"col1":{"type":"str","key":true}},' + '{"col2":{"type":"str"}},{"col3":{"type":"str"}}]'
)
with mock.patch.object(lookup, "send_control", wraps=lookup.send_control) as lookup_spy:
lookup.send_headers(headers=headers, key_index=0, event="START", action="FULL")
Expand All @@ -204,8 +204,8 @@ def test_send_headers_with_type_of_key(setup):
headers = ["col1", "col2", "col3"]

expected_headers = (
'[{"col1":{"type":"int4","key":true}},'
+ '{"col2":{"type":"str"}},{"col3":{"type":"str"}}]'
'[{"col1":{"type":"int4","key":true}},'
+ '{"col2":{"type":"str"}},{"col3":{"type":"str"}}]'
)
with mock.patch.object(lookup, "send_control", wraps=lookup.send_control) as lookup_spy:
lookup.send_headers(
Expand Down Expand Up @@ -309,7 +309,7 @@ def test_escape_quotes_in_send_data_line_key(setup):

with mock.patch.object(Lookup, "clean_field", wraps=Lookup.clean_field) as clean_field:
lookup.send_data_line(key_index=0, fields=["11", 'Double quotes"'])
clean_field.assert_called_with('Double quotes"', True)
clean_field.assert_called_with('Double quotes"', True, False)


# Test to make sure escape_quotes is propagated correctly
Expand All @@ -325,7 +325,7 @@ def test_escape_quotes_in_send_data_line(setup):

with mock.patch.object(Lookup, "clean_field", wraps=Lookup.clean_field) as clean_field:
lookup.send_data_line(key_index=0, fields=["11", 'Double quotes"'])
clean_field.assert_called_with('Double quotes"', True)
clean_field.assert_called_with('Double quotes"', True, False)

# Test to make sure escape_quotes is propagated correctly

Expand All @@ -342,7 +342,7 @@ def test_escape_quotes_in_send_csv(setup):

with mock.patch.object(Lookup, "clean_field", wraps=Lookup.clean_field) as clean_field:
lookup.send_csv(path=setup.lookup_file, has_header=True, key=setup.lookup_key)
clean_field.assert_called_with("ffffff", True)
clean_field.assert_called_with("ffffff", True, False)

# Test to make sure escape_quotes is propagated correctly

Expand All @@ -364,7 +364,7 @@ def test_escape_quotes_in_send_csv_delete_index(setup):
key=setup.lookup_key,
delete_field="Green",
)
clean_field.assert_called_with("ffffff", True)
clean_field.assert_called_with("ffffff", True, False)


if __name__ == "__main__":
Expand Down