Skip to content

Commit

Permalink
tests except size
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliva Kar committed Jan 25, 2024
1 parent 716508e commit 3e69339
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def _replace_user_supplied_sastoken(self, sastoken_str: str) -> None:
raise ValueError("Provided SasToken is for a device")
if self._mqtt_pipeline.pipeline_configuration.device_id != vals["device_id"]:
raise ValueError("Provided SasToken does not match existing device id")
if vals["module_id"] is not "" and self._mqtt_pipeline.pipeline_configuration.module_id != vals["module_id"]:
if vals["module_id"] != "" and self._mqtt_pipeline.pipeline_configuration.module_id != vals["module_id"]:
raise ValueError("Provided SasToken does not match existing module id")
if self._mqtt_pipeline.pipeline_configuration.hostname != vals["hostname"]:
raise ValueError("Provided SasToken does not match existing hostname")
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/iothub/shared_client_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ def test_pipeline_config(
# Verify the IoTHubPipelineConfig is constructed as expected
config = mock_mqtt_pipeline_init.call_args[0][0]
assert config.device_id == expected_device_id
assert config.module_id is ""
assert config.module_id == ""
assert config.hostname == expected_hostname
assert config.gateway_hostname is None
assert config.sastoken is sastoken_mock.return_value
Expand Down

0 comments on commit 3e69339

Please sign in to comment.