diff --git a/tavern/_plugins/mqtt/client.py b/tavern/_plugins/mqtt/client.py index cea6fde2..fd917670 100644 --- a/tavern/_plugins/mqtt/client.py +++ b/tavern/_plugins/mqtt/client.py @@ -296,7 +296,7 @@ def _on_message( """Add any messages received to the queue Todo: - If the queue is faull trigger an error in main thread somehow + If the queue is full trigger an error in main thread somehow """ logger.info("Received mqtt message on %s", message.topic) diff --git a/tests/unit/test_helpers.py b/tests/unit/test_helpers.py index 5b233f8d..fe2d1752 100644 --- a/tests/unit/test_helpers.py +++ b/tests/unit/test_helpers.py @@ -272,7 +272,6 @@ def test_incorrect_value(self, nested_response): validate_content(nested_response, comparisons) -@pytest.mark.xfail class TestPykwalifyExtension: def test_validate_schema_correct(self, nested_response): correct_schema = dedent( diff --git a/tests/unit/test_marks.py b/tests/unit/test_marks.py index f39574e5..fa42c093 100644 --- a/tests/unit/test_marks.py +++ b/tests/unit/test_marks.py @@ -153,7 +153,7 @@ def test_dict_node(self): """Test converting ast.Dict nodes""" # Empty dict - node = ast.Dict(keys=[], values=[], ctx=ast.Load()) + node = ast.Dict(keys=[], values=[]) result = _ast_node_to_literal(node) assert result == {} @@ -167,7 +167,6 @@ def test_dict_node(self): ast.Constant(value="value1"), ast.Constant(value=2), ], - ctx=ast.Load(), ) result = _ast_node_to_literal(node) assert result == {"key1": "value1", "key2": 2} @@ -176,7 +175,6 @@ def test_dict_node(self): inner_dict = ast.Dict( keys=[ast.Constant(value="inner_key")], values=[ast.Constant(value="inner_value")], - ctx=ast.Load(), ) node = ast.Dict( keys=[ @@ -187,7 +185,6 @@ def test_dict_node(self): ast.Constant(value="outer_value"), inner_dict, ], - ctx=ast.Load(), ) result = _ast_node_to_literal(node) assert result == {