repo_id stringclasses 400
values | commit_sha stringclasses 400
values | commit_index int32 0 951 | in_repo_split stringclasses 1
value | cross_repo_split stringclasses 1
value | test_file stringlengths 7 121 | test_function stringlengths 1 108 | assertion_type stringclasses 32
values | difficulty stringclasses 8
values | context_lines int32 3 600 | prefix large_stringlengths 44 113k | target large_stringlengths 1 498 | anchor_sha stringclasses 400
values | anchor_index int32 0 951 | qna_source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/response/test_mqtt_response.py | test_correct_message_eventually | assert | complex_expr | 53 | from unittest.mock import Mock
import pytest
from tavern._plugins.mqtt.client import MQTTClient
from tavern._plugins.mqtt.response import MQTTResponse
from tavern.util import exceptions
from tavern.util.strict_util import StrictLevel
class TestResponse(object):
def _get_fake_verifier(self, expected, fake_message... | fake_message_bad.topic | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/response/test_mqtt_response.py | test_correct_message_eventually | assert | complex_expr | 54 | from unittest.mock import Mock
import pytest
from tavern._plugins.mqtt.client import MQTTClient
from tavern._plugins.mqtt.response import MQTTResponse
from tavern.util import exceptions
from tavern.util.strict_util import StrictLevel
class TestResponse(object):
def _get_fake_verifier(self, expected, fake_message... | fake_message_good.topic | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/response/test_mqtt_response.py | test_message_on_same_topic_fails | pytest.raises | complex_expr | 47 | from unittest.mock import Mock
import pytest
from tavern._plugins.mqtt.client import MQTTClient
from tavern._plugins.mqtt.response import MQTTResponse
from tavern.util import exceptions
from tavern.util.strict_util import StrictLevel
class TestResponse(object):
def _get_fake_verifier(self, expected, fake_message... | exceptions.TestFailError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/response/test_rest.py | test_incorrect_status_code | pytest.raises | complex_expr | 58 | from unittest.mock import Mock, patch
import pytest
from tavern._plugins.rest.response import RestResponse
from tavern.util import exceptions
from tavern.util.dict_util import format_keys
from tavern.util.loader import ANYTHING
def fix_example_response():
spec = {
"status_code": 302,
"headers": {... | exceptions.TestFailError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/response/test_rest.py | test_save_redirect_query_param | assert | collection | 55 | from unittest.mock import Mock, patch
import pytest
from tavern._plugins.rest.response import RestResponse
from tavern.util import exceptions
from tavern.util.dict_util import format_keys
from tavern.util.loader import ANYTHING
def fix_example_response():
spec = {
"status_code": 302,
"headers": {... | {"test_search": "breadsticks"} | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/response/test_rest.py | test_save_body | assert | collection | 54 | from unittest.mock import Mock, patch
import pytest
from tavern._plugins.rest.response import RestResponse
from tavern.util import exceptions
from tavern.util.dict_util import format_keys
from tavern.util.loader import ANYTHING
def fix_example_response():
spec = {
"status_code": 302,
"headers": {... | {"test_code": example_response["json"]["code"]} | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/response/test_rest.py | test_save_header | assert | collection | 55 | from unittest.mock import Mock, patch
import pytest
from tavern._plugins.rest.response import RestResponse
from tavern.util import exceptions
from tavern.util.dict_util import format_keys
from tavern.util.loader import ANYTHING
def fix_example_response():
spec = {
"status_code": 302,
"headers": {... | {"next_location": example_response["headers"]["location"]} | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/response/test_rest.py | test_save_body_nested | assert | collection | 56 | from unittest.mock import Mock, patch
import pytest
from tavern._plugins.rest.response import RestResponse
from tavern.util import exceptions
from tavern.util.dict_util import format_keys
from tavern.util.loader import ANYTHING
def fix_example_response():
spec = {
"status_code": 302,
"headers": {... | { "test_nested_thing": example_response["json"]["nested"]["subthing"] } | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/response/test_rest.py | test_save_body_nested_list | assert | collection | 56 | from unittest.mock import Mock, patch
import pytest
from tavern._plugins.rest.response import RestResponse
from tavern.util import exceptions
from tavern.util.dict_util import format_keys
from tavern.util.loader import ANYTHING
def fix_example_response():
spec = {
"status_code": 302,
"headers": {... | { "test_nested_thing": example_response["json"]["nested"]["subthing"][0] } | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_call_run.py | test_path_nonexistent | pytest.raises | complex_expr | 24 | from unittest.mock import patch
import pytest
from tavern.core import run
from tavern.util import exceptions
def patch_pytest():
with patch("tavern.core.pytest.main") as fake_main:
yield
assert fake_main.called
class TestParseFailures:
def patch_pytest(self):
with patch("tavern.core.py... | exceptions.InvalidSettingsError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_core.py | check_mocks_called | assert | numeric_literal | 72 | from copy import deepcopy
import json
import os
from unittest.mock import MagicMock, Mock, patch
import uuid
import paho.mqtt.client as paho
import pytest
import requests
from tavern._plugins.mqtt.client import MQTTClient
from tavern.core import run_test
from tavern.util import exceptions
def fix_example_test():
... | 2 | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_core.py | test_run_once | assert | numeric_literal | 59 | from copy import deepcopy
import json
import os
from unittest.mock import MagicMock, Mock, patch
import uuid
import paho.mqtt.client as paho
import pytest
import requests
from tavern._plugins.mqtt.client import MQTTClient
from tavern.core import run_test
from tavern.util import exceptions
def fix_example_test():
... | 1 | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_core.py | test_sleep_before | assert_* | numeric_literal | 64 | from copy import deepcopy
import json
import os
from unittest.mock import MagicMock, Mock, patch
import uuid
import paho.mqtt.client as paho
import pytest
import requests
from tavern._plugins.mqtt.client import MQTTClient
from tavern.core import run_test
from tavern.util import exceptions
def fix_example_test():
... | 2) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_core.py | check_mocks_called | assert | string_literal | 74 | from copy import deepcopy
import json
import os
from unittest.mock import MagicMock, Mock, patch
import uuid
import paho.mqtt.client as paho
import pytest
import requests
from tavern._plugins.mqtt.client import MQTTClient
from tavern.core import run_test
from tavern.util import exceptions
def fix_example_test():
... | "http://www.bing.com" | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_core.py | check_mocks_called | assert | string_literal | 76 | from copy import deepcopy
import json
import os
from unittest.mock import MagicMock, Mock, patch
import uuid
import paho.mqtt.client as paho
import pytest
import requests
from tavern._plugins.mqtt.client import MQTTClient
from tavern.core import run_test
from tavern.util import exceptions
def fix_example_test():
... | "http://www.google.com" | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_core.py | test_repeats_twice_and_fails | pytest.raises | complex_expr | 59 | from copy import deepcopy
import json
import os
from unittest.mock import MagicMock, Mock, patch
import uuid
import paho.mqtt.client as paho
import pytest
import requests
from tavern._plugins.mqtt.client import MQTTClient
from tavern.core import run_test
from tavern.util import exceptions
def fix_example_test():
... | exceptions.TestFailError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_core.py | test_format_env_keys_missing_failure | pytest.raises | complex_expr | 59 | from copy import deepcopy
import json
import os
from unittest.mock import MagicMock, Mock, patch
import uuid
import paho.mqtt.client as paho
import pytest
import requests
from tavern._plugins.mqtt.client import MQTTClient
from tavern.core import run_test
from tavern.util import exceptions
def fix_example_test():
... | exceptions.MissingFormatError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_core.py | test_neither | pytest.raises | complex_expr | 88 | from copy import deepcopy
import json
import os
from unittest.mock import MagicMock, Mock, patch
import uuid
import paho.mqtt.client as paho
import pytest
import requests
from tavern._plugins.mqtt.client import MQTTClient
from tavern.core import run_test
from tavern.util import exceptions
def fix_example_test():
... | exceptions.InvalidStageReferenceError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_core.py | test_both_stages | pytest.raises | complex_expr | 90 | from copy import deepcopy
import json
import os
from unittest.mock import MagicMock, Mock, patch
import uuid
import paho.mqtt.client as paho
import pytest
import requests
from tavern._plugins.mqtt.client import MQTTClient
from tavern.core import run_test
from tavern.util import exceptions
def fix_example_test():
... | exceptions.DuplicateStageDefinitionError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_helpers.py | test_custom_format | assert | variable | 56 | import json
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import _pytest
import pytest
import sys
import yaml
from tavern.core import run
from tavern.schemas.extensions import validate_file_spec
from tavern.testutils.helpers import (
validate_content,
validate_pykwalify,
... | item | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_helpers.py | test_parse_option | assert | variable | 55 | import json
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import _pytest
import pytest
import sys
import yaml
from tavern.core import run
from tavern.schemas.extensions import validate_file_spec
from tavern.testutils.helpers import (
validate_content,
validate_pykwalify,
... | section | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_helpers.py | test_extra_args | pytest.raises | variable | 33 | import json
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import _pytest
import pytest
import sys
import yaml
from tavern.core import run
from tavern.schemas.extensions import validate_file_spec
from tavern.testutils.helpers import (
validate_content,
validate_pykwalify,
... | TypeError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_helpers.py | test_in_jmespath | assert | complex_expr | 49 | import json
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import _pytest
import pytest
import sys
import yaml
from tavern.core import run
from tavern.schemas.extensions import validate_file_spec
from tavern.testutils.helpers import (
validate_content,
validate_pykwalify,
... | expected[-1] | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_helpers.py | test_regex_match | assert | complex_expr | 36 | import json
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import _pytest
import pytest
import sys
import yaml
from tavern.core import run
from tavern.schemas.extensions import validate_file_spec
from tavern.testutils.helpers import (
validate_content,
validate_pykwalify,
... | matched["regex"] | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_helpers.py | test_set_on | assert | complex_expr | 54 | import json
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import _pytest
import pytest
import sys
import yaml
from tavern.core import run
from tavern.schemas.extensions import validate_file_spec
from tavern.testutils.helpers import (
validate_content,
validate_pykwalify,
... | StrictSetting.ON | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_helpers.py | test_set_off | assert | complex_expr | 54 | import json
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import _pytest
import pytest
import sys
import yaml
from tavern.core import run
from tavern.schemas.extensions import validate_file_spec
from tavern.testutils.helpers import (
validate_content,
validate_pykwalify,
... | StrictSetting.OFF | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_helpers.py | test_unset | assert | complex_expr | 54 | import json
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import _pytest
import pytest
import sys
import yaml
from tavern.core import run
from tavern.schemas.extensions import validate_file_spec
from tavern.testutils.helpers import (
validate_content,
validate_pykwalify,
... | StrictSetting.UNSET | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_helpers.py | test_incorrect_jmes_path | pytest.raises | complex_expr | 52 | import json
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import _pytest
import pytest
import sys
import yaml
from tavern.core import run
from tavern.schemas.extensions import validate_file_spec
from tavern.testutils.helpers import (
validate_content,
validate_pykwalify,
... | exceptions.JMESError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_helpers.py | test_validate_schema_incorrect | pytest.raises | complex_expr | 60 | import json
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import _pytest
import pytest
import sys
import yaml
from tavern.core import run
from tavern.schemas.extensions import validate_file_spec
from tavern.testutils.helpers import (
validate_content,
validate_pykwalify,
... | exceptions.BadSchemaError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_helpers.py | test_regex_no_match | pytest.raises | complex_expr | 35 | import json
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import _pytest
import pytest
import sys
import yaml
from tavern.core import run
from tavern.schemas.extensions import validate_file_spec
from tavern.testutils.helpers import (
validate_content,
validate_pykwalify,
... | exceptions.RegexAccessError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_helpers.py | test_bad_format_string_extra | pytest.raises | complex_expr | 52 | import json
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import _pytest
import pytest
import sys
import yaml
from tavern.core import run
from tavern.schemas.extensions import validate_file_spec
from tavern.testutils.helpers import (
validate_content,
validate_pykwalify,
... | exceptions.InvalidFormattedJsonError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_mqtt.py | test_context_connection_success | assert | variable | 28 | import contextlib
import threading
from unittest.mock import MagicMock, Mock, patch
import paho.mqtt.client as paho
import pytest
from tavern._plugins.mqtt.client import MQTTClient, _handle_tls_args, _Subscription
from tavern._plugins.mqtt.request import MQTTRequest
from tavern.util import exceptions
class TestClien... | x | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_mqtt.py | test_no_subscribe_on_err | assert | collection | 38 | import contextlib
import threading
from unittest.mock import MagicMock, Mock, patch
import paho.mqtt.client as paho
import pytest
from tavern._plugins.mqtt.client import MQTTClient, _handle_tls_args, _Subscription
from tavern._plugins.mqtt.request import MQTTRequest
from tavern.util import exceptions
def fix_example... | {} | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_mqtt.py | test_no_message | assert | none_literal | 23 | import contextlib
import threading
from unittest.mock import MagicMock, Mock, patch
import paho.mqtt.client as paho
import pytest
from tavern._plugins.mqtt.client import MQTTClient, _handle_tls_args, _Subscription
from tavern._plugins.mqtt.request import MQTTRequest
from tavern.util import exceptions
class TestClien... | None | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_mqtt.py | test_handles_subscriptions | assert | string_literal | 38 | import contextlib
import threading
from unittest.mock import MagicMock, Mock, patch
import paho.mqtt.client as paho
import pytest
from tavern._plugins.mqtt.client import MQTTClient, _handle_tls_args, _Subscription
from tavern._plugins.mqtt.request import MQTTRequest
from tavern.util import exceptions
def fix_example... | "abc" | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_mqtt.py | test_handles_subscriptions | assert | bool_literal | 39 | import contextlib
import threading
from unittest.mock import MagicMock, Mock, patch
import paho.mqtt.client as paho
import pytest
from tavern._plugins.mqtt.client import MQTTClient, _handle_tls_args, _Subscription
from tavern._plugins.mqtt.request import MQTTRequest
from tavern.util import exceptions
def fix_example... | False | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_mqtt.py | test_message_queued | assert | variable | 26 | import contextlib
import threading
from unittest.mock import MagicMock, Mock, patch
import paho.mqtt.client as paho
import pytest
from tavern._plugins.mqtt.client import MQTTClient, _handle_tls_args, _Subscription
from tavern._plugins.mqtt.request import MQTTRequest
from tavern.util import exceptions
class TestClien... | message | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_mqtt.py | test_context_connection_failure | pytest.raises | complex_expr | 26 | import contextlib
import threading
from unittest.mock import MagicMock, Mock, patch
import paho.mqtt.client as paho
import pytest
from tavern._plugins.mqtt.client import MQTTClient, _handle_tls_args, _Subscription
from tavern._plugins.mqtt.request import MQTTRequest
from tavern.util import exceptions
class TestClien... | exceptions.MQTTError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_mqtt.py | test_missing_cert_gives_error | pytest.raises | complex_expr | 18 | import contextlib
import threading
from unittest.mock import MagicMock, Mock, patch
import paho.mqtt.client as paho
import pytest
from tavern._plugins.mqtt.client import MQTTClient, _handle_tls_args, _Subscription
from tavern._plugins.mqtt.request import MQTTRequest
from tavern.util import exceptions
class TestTLS(o... | exceptions.MQTTTLSError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_mqtt.py | test_host_required | pytest.raises | complex_expr | 15 | import contextlib
import threading
from unittest.mock import MagicMock, Mock, patch
import paho.mqtt.client as paho
import pytest
from tavern._plugins.mqtt.client import MQTTClient, _handle_tls_args, _Subscription
from tavern._plugins.mqtt.request import MQTTRequest
from tavern.util import exceptions
def test_host_r... | exceptions.MissingKeysError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_mqtt.py | test_missing_format | pytest.raises | complex_expr | 24 | import contextlib
import threading
from unittest.mock import MagicMock, Mock, patch
import paho.mqtt.client as paho
import pytest
from tavern._plugins.mqtt.client import MQTTClient, _handle_tls_args, _Subscription
from tavern._plugins.mqtt.request import MQTTRequest
from tavern.util import exceptions
def fix_example... | exceptions.MissingFormatError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_mqtt.py | test_unknown_fields | pytest.raises | complex_expr | 23 | import contextlib
import threading
from unittest.mock import MagicMock, Mock, patch
import paho.mqtt.client as paho
import pytest
from tavern._plugins.mqtt.client import MQTTClient, _handle_tls_args, _Subscription
from tavern._plugins.mqtt.request import MQTTRequest
from tavern.util import exceptions
def fix_example... | exceptions.UnexpectedKeysError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_pytest_hooks.py | test_none | assert | numeric_literal | 66 | from dataclasses import dataclass
import os
from unittest.mock import Mock
from faker import Faker
import py
from py._path.local import LocalPath
import pytest
from tavern.testutils.pytesthook.file import YamlFile, _get_parametrized_items
def mock_args():
"""Get a basic test config to initialise a YamlFile objec... | 1 | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_pytest_hooks.py | test_only_single | assert | numeric_literal | 69 | from dataclasses import dataclass
import os
from unittest.mock import Mock
from faker import Faker
import py
from py._path.local import LocalPath
import pytest
from tavern.testutils.pytesthook.file import YamlFile, _get_parametrized_items
def mock_args():
"""Get a basic test config to initialise a YamlFile objec... | 3 | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_pytest_hooks.py | test_double | assert | numeric_literal | 73 | from dataclasses import dataclass
import os
from unittest.mock import Mock
from faker import Faker
import py
from py._path.local import LocalPath
import pytest
from tavern.testutils.pytesthook.file import YamlFile, _get_parametrized_items
def mock_args():
"""Get a basic test config to initialise a YamlFile objec... | 6 | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_pytest_hooks.py | test_only_basic | assert | numeric_literal | 77 | from dataclasses import dataclass
import os
from unittest.mock import Mock
from faker import Faker
import py
from py._path.local import LocalPath
import pytest
from tavern.testutils.pytesthook.file import YamlFile, _get_parametrized_items
def mock_args():
"""Get a basic test config to initialise a YamlFile objec... | 27 | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_pytest_hooks.py | test_double_double | assert | numeric_literal | 78 | from dataclasses import dataclass
import os
from unittest.mock import Mock
from faker import Faker
import py
from py._path.local import LocalPath
import pytest
from tavern.testutils.pytesthook.file import YamlFile, _get_parametrized_items
def mock_args():
"""Get a basic test config to initialise a YamlFile objec... | 12 | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_pytest_hooks.py | test_double_double_single | assert | numeric_literal | 79 | from dataclasses import dataclass
import os
from unittest.mock import Mock
from faker import Faker
import py
from py._path.local import LocalPath
import pytest
from tavern.testutils.pytesthook.file import YamlFile, _get_parametrized_items
def mock_args():
"""Get a basic test config to initialise a YamlFile objec... | 36 | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_request.py | test_no_expected_none_available | assert | collection | 49 | from contextlib import ExitStack
import os
import tempfile
from unittest.mock import Mock
import pytest
import requests
from requests.cookies import RequestsCookieJar
from tavern._plugins.rest.request import (
RestRequest,
_check_allow_redirects,
_get_file_arguments,
_read_expected_cookies,
get_re... | {} | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_request.py | test_available_not_waited | assert | none_literal | 51 | from contextlib import ExitStack
import os
import tempfile
from unittest.mock import Mock
import pytest
import requests
from requests.cookies import RequestsCookieJar
from tavern._plugins.rest.request import (
RestRequest,
_check_allow_redirects,
_get_file_arguments,
_read_expected_cookies,
get_re... | None | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_request.py | test_session_called_no_redirects | assert | bool_literal | 43 | from contextlib import ExitStack
import os
import tempfile
from unittest.mock import Mock
import pytest
import requests
from requests.cookies import RequestsCookieJar
from tavern._plugins.rest.request import (
RestRequest,
_check_allow_redirects,
_get_file_arguments,
_read_expected_cookies,
get_re... | False | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_request.py | test_default_method | assert | string_literal | 46 | from contextlib import ExitStack
import os
import tempfile
from unittest.mock import Mock
import pytest
import requests
from requests.cookies import RequestsCookieJar
from tavern._plugins.rest.request import (
RestRequest,
_check_allow_redirects,
_get_file_arguments,
_read_expected_cookies,
get_re... | "GET" | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_request.py | test_no_override_method | assert | string_literal | 46 | from contextlib import ExitStack
import os
import tempfile
from unittest.mock import Mock
import pytest
import requests
from requests.cookies import RequestsCookieJar
from tavern._plugins.rest.request import (
RestRequest,
_check_allow_redirects,
_get_file_arguments,
_read_expected_cookies,
get_re... | "POST" | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_request.py | test_passthrough_verify | assert | variable | 48 | from contextlib import ExitStack
import os
import tempfile
from unittest.mock import Mock
import pytest
import requests
from requests.cookies import RequestsCookieJar
from tavern._plugins.rest.request import (
RestRequest,
_check_allow_redirects,
_get_file_arguments,
_read_expected_cookies,
get_re... | verify | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_request.py | test_file_body_content_encoding | assert | string_literal | 59 | from contextlib import ExitStack
import os
import tempfile
from unittest.mock import Mock
import pytest
import requests
from requests.cookies import RequestsCookieJar
from tavern._plugins.rest.request import (
RestRequest,
_check_allow_redirects,
_get_file_arguments,
_read_expected_cookies,
get_re... | "gzip" | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_request.py | test_get_from_function | assert | variable | 61 | from contextlib import ExitStack
import os
import tempfile
from unittest.mock import Mock
import pytest
import requests
from requests.cookies import RequestsCookieJar
from tavern._plugins.rest.request import (
RestRequest,
_check_allow_redirects,
_get_file_arguments,
_read_expected_cookies,
get_re... | to_copy | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_request.py | test_available_and_waited | assert | collection | 54 | from contextlib import ExitStack
import os
import tempfile
from unittest.mock import Mock
import pytest
import requests
from requests.cookies import RequestsCookieJar
from tavern._plugins.rest.request import (
RestRequest,
_check_allow_redirects,
_get_file_arguments,
_read_expected_cookies,
get_re... | {"a": 2} | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_request.py | test_use_long_form_content_type | assert | string_literal | 62 | from contextlib import ExitStack
import os
import tempfile
from unittest.mock import Mock
import pytest
import requests
from requests.cookies import RequestsCookieJar
from tavern._plugins.rest.request import (
RestRequest,
_check_allow_redirects,
_get_file_arguments,
_read_expected_cookies,
get_re... | "abc123" | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_request.py | test_session_do_follow_redirects_based_on_test | assert | variable | 47 | from contextlib import ExitStack
import os
import tempfile
from unittest.mock import Mock
import pytest
import requests
from requests.cookies import RequestsCookieJar
from tavern._plugins.rest.request import (
RestRequest,
_check_allow_redirects,
_get_file_arguments,
_read_expected_cookies,
get_re... | do_follow | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_request.py | test_no_default_content_type | pytest.raises | variable | 52 | from contextlib import ExitStack
import os
import tempfile
from unittest.mock import Mock
import pytest
import requests
from requests.cookies import RequestsCookieJar
from tavern._plugins.rest.request import (
RestRequest,
_check_allow_redirects,
_get_file_arguments,
_read_expected_cookies,
get_re... | KeyError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_request.py | test_file_body_format | assert | complex_expr | 53 | from contextlib import ExitStack
import os
import tempfile
from unittest.mock import Mock
import pytest
import requests
from requests.cookies import RequestsCookieJar
from tavern._plugins.rest.request import (
RestRequest,
_check_allow_redirects,
_get_file_arguments,
_read_expected_cookies,
get_re... | tmpin.name | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_schema.py | test_header_request_list | pytest.raises | variable | 45 | import contextlib
import os
import tempfile
from textwrap import dedent
import pytest
import yaml
from tavern.schemas.files import verify_tests
from tavern.util.exceptions import BadSchemaError
from tavern.util.loader import load_single_document_yaml
def fix_test_dict():
text = dedent(
"""
---
te... | BadSchemaError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_strict_util.py | test_extract_strict_setting_true | assert | bool_literal | 11 | import pytest
from tavern.util.strict_util import StrictOption, StrictSetting, extract_strict_setting
@pytest.mark.parametrize(
"strict", [True, StrictSetting.ON, StrictOption("json", StrictSetting.ON)]
)
def test_extract_strict_setting_true(strict):
as_bool, as_setting = extract_strict_setting(strict)
a... | True | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_strict_util.py | test_extract_strict_setting_false | assert | bool_literal | 19 | import pytest
from tavern.util.strict_util import StrictOption, StrictSetting, extract_strict_setting
@pytest.mark.parametrize(
"strict",
[
False,
StrictSetting.OFF,
StrictSetting.LIST_ANY_ORDER,
StrictSetting.UNSET,
StrictOption("json", StrictSetting.OFF),
None... | False | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_strict_util.py | test_extract_strict_setting_true | assert | variable | 13 | import pytest
from tavern.util.strict_util import StrictOption, StrictSetting, extract_strict_setting
@pytest.mark.parametrize(
"strict", [True, StrictSetting.ON, StrictOption("json", StrictSetting.ON)]
)
def test_extract_strict_setting_true(strict):
as_bool, as_setting = extract_strict_setting(strict)
as... | strict | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_strict_util.py | test_extract_strict_setting_true | assert | complex_expr | 15 | import pytest
from tavern.util.strict_util import StrictOption, StrictSetting, extract_strict_setting
@pytest.mark.parametrize(
"strict", [True, StrictSetting.ON, StrictOption("json", StrictSetting.ON)]
)
def test_extract_strict_setting_true(strict):
as_bool, as_setting = extract_strict_setting(strict)
as... | strict.setting | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_utilities.py | test_conversion | assert_* | numeric_literal | 69 | from collections import OrderedDict
import contextlib
import copy
import os
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import pytest
import yaml
from tavern.schemas.extensions import validate_extensions
from tavern.schemas.files import wrapfile
from tavern.util import exceptions... | 5) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_utilities.py | test_missing_search | assert | none_literal | 72 | from collections import OrderedDict
import contextlib
import copy
import os
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import pytest
import yaml
from tavern.schemas.extensions import validate_extensions
from tavern.schemas.files import wrapfile
from tavern.util import exceptions... | None | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_utilities.py | test_conversion | assert_* | numeric_literal | 70 | from collections import OrderedDict
import contextlib
import copy
import os
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import pytest
import yaml
from tavern.schemas.extensions import validate_extensions
from tavern.schemas.files import wrapfile
from tavern.util import exceptions... | 10.0) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_utilities.py | test_conversion | assert_* | bool_literal | 71 | from collections import OrderedDict
import contextlib
import copy
import os
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import pytest
import yaml
from tavern.schemas.extensions import validate_extensions
from tavern.schemas.files import wrapfile
from tavern.util import exceptions... | True) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_utilities.py | test_conversion | assert_* | bool_literal | 72 | from collections import OrderedDict
import contextlib
import copy
import os
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import pytest
import yaml
from tavern.schemas.extensions import validate_extensions
from tavern.schemas.files import wrapfile
from tavern.util import exceptions... | False) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_utilities.py | test_format_success | assert | variable | 70 | from collections import OrderedDict
import contextlib
import copy
import os
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import pytest
import yaml
from tavern.schemas.extensions import validate_extensions
from tavern.schemas.files import wrapfile
from tavern.util import exceptions... | final_value | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_utilities.py | test_search_old_style | assert | variable | 79 | from collections import OrderedDict
import contextlib
import copy
import os
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import pytest
import yaml
from tavern.schemas.extensions import validate_extensions
from tavern.schemas.files import wrapfile
from tavern.util import exceptions... | expected_data | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_utilities.py | assert_type_value | assert | variable | 64 | from collections import OrderedDict
import contextlib
import copy
import os
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import pytest
import yaml
from tavern.schemas.extensions import validate_extensions
from tavern.schemas.files import wrapfile
from tavern.util import exceptions... | expected_value | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_utilities.py | test_search_old_style | pytest.raises | complex_expr | 75 | from collections import OrderedDict
import contextlib
import copy
import os
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import pytest
import yaml
from tavern.schemas.extensions import validate_extensions
from tavern.schemas.files import wrapfile
from tavern.util import exceptions... | exceptions.JMESError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_utilities.py | test_get_invalid_module | pytest.raises | complex_expr | 41 | from collections import OrderedDict
import contextlib
import copy
import os
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import pytest
import yaml
from tavern.schemas.extensions import validate_extensions
from tavern.schemas.files import wrapfile
from tavern.util import exceptions... | exceptions.BadSchemaError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_utilities.py | test_load_one | assert | func_call | 66 | from collections import OrderedDict
import contextlib
import copy
import os
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import pytest
import yaml
from tavern.schemas.extensions import validate_extensions
from tavern.schemas.files import wrapfile
from tavern.util import exceptions... | load_single_document_yaml(f) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taverntesting/tavern | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | train | train | tests/unit/test_utilities.py | test_match_dict_mismatch | pytest.raises | complex_expr | 42 | from collections import OrderedDict
import contextlib
import copy
import os
import tempfile
from textwrap import dedent
from unittest.mock import Mock, patch
import pytest
import yaml
from tavern.schemas.extensions import validate_extensions
from tavern.schemas.files import wrapfile
from tavern.util import exceptions... | exceptions.KeyMismatchError) | 97a47d6c4c457fc6b6c54714fdbf91b49626fd72 | 133 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/core/test_comments.py | test_read_comments_includes_quoted_text | assert | variable | 47 | import sys
import os
import pytest
from unittest.mock import Mock
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
from core.comments import _read_comments_impl
@pytest.mark.asyncio
async def test_read_comments_includes_quoted_text():
"""Verify that quotedFileContent.value is... | result | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gappsscript/test_apps_script_tools.py | test_list_script_projects | assert | variable | 49 | import pytest
from unittest.mock import Mock
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
from gappsscript.apps_script_tools import (
_list_script_projects_impl,
_get_script_project_impl,
_create_script_project_impl,
_update_script_content_... | result | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gchat/test_chat_tools.py | test_get_messages_shows_attachment_metadata | assert | variable | 69 | import base64
import pytest
from unittest.mock import AsyncMock, Mock, patch
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
def _make_message(text="Hello", attachments=None, msg_name="spaces/S/messages/M"):
"""Build a minimal Chat API message dict for te... | result | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gchat/test_chat_tools.py | test_download_uses_api_media_endpoint | assert | variable | 95 | import base64
import pytest
from unittest.mock import AsyncMock, Mock, patch
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
def _make_message(text="Hello", attachments=None, msg_name="spaces/S/messages/M"):
"""Build a minimal Chat API message dict for te... | url_used | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gcontacts/test_contacts_tools.py | test_build_empty_body | assert | collection | 18 | import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
from gcontacts.contacts_tools import (
_format_contact,
_build_person_body,
)
class TestBuildPersonBody:
def test_build_empty_body(self):
"""Test building an empty person body."""
b... | {} | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gcontacts/test_contacts_tools.py | test_build_body_given_name_only | assert | string_literal | 19 | import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
from gcontacts.contacts_tools import (
_format_contact,
_build_person_body,
)
class TestBuildPersonBody:
def test_build_body_given_name_only(self):
"""Test building a person body with only ... | "" | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gcontacts/test_contacts_tools.py | test_format_contact_detailed_long_biography | assert | numeric_literal | 26 | import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
from gcontacts.contacts_tools import (
_format_contact,
_build_person_body,
)
class TestFormatContact:
def test_format_contact_detailed_long_biography(self):
"""Test formatting truncates lo... | 203 | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gcontacts/test_contacts_tools.py | test_build_basic_body | assert | string_literal | 23 | import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
from gcontacts.contacts_tools import (
_format_contact,
_build_person_body,
)
class TestBuildPersonBody:
def test_build_basic_body(self):
"""Test building a basic person body."""
bo... | "Doe" | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gcontacts/test_contacts_tools.py | test_build_body_job_title_only | assert | string_literal | 18 | import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
from gcontacts.contacts_tools import (
_format_contact,
_build_person_body,
)
class TestBuildPersonBody:
def test_build_body_job_title_only(self):
"""Test building a person body with only j... | "CEO" | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gcontacts/test_contacts_tools.py | test_format_basic_contact | assert | variable | 25 | import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
from gcontacts.contacts_tools import (
_format_contact,
_build_person_body,
)
class TestFormatContact:
def test_format_basic_contact(self):
"""Test formatting a contact with basic fields.""... | result | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gdocs/test_docs_markdown.py | test_filters_resolved | assert | numeric_literal | 235 | import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
from gdocs.docs_markdown import (
convert_doc_to_markdown,
format_comments_appendix,
format_comments_inline,
parse_drive_comments,
)
SIMPLE_DOC = {
"title": "Simple Test",
"body": {
... | 1 | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gdocs/test_docs_markdown.py | test_includes_resolved | assert | numeric_literal | 236 | import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
from gdocs.docs_markdown import (
convert_doc_to_markdown,
format_comments_appendix,
format_comments_inline,
parse_drive_comments,
)
SIMPLE_DOC = {
"title": "Simple Test",
"body": {
... | 2 | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gdocs/test_docs_markdown.py | test_plain_text | assert | variable | 219 | import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
from gdocs.docs_markdown import (
convert_doc_to_markdown,
format_comments_appendix,
format_comments_inline,
parse_drive_comments,
)
SIMPLE_DOC = {
"title": "Simple Test",
"body": {
... | md | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gdocs/test_docs_markdown.py | test_empty | assert | string_literal | 219 | import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
from gdocs.docs_markdown import (
convert_doc_to_markdown,
format_comments_appendix,
format_comments_inline,
parse_drive_comments,
)
SIMPLE_DOC = {
"title": "Simple Test",
"body": {
... | "" | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gdocs/test_docs_markdown.py | test_filters_resolved | assert | string_literal | 236 | import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
from gdocs.docs_markdown import (
convert_doc_to_markdown,
format_comments_appendix,
format_comments_inline,
parse_drive_comments,
)
SIMPLE_DOC = {
"title": "Simple Test",
"body": {
... | "open" | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gdocs/test_docs_markdown.py | test_inserts_footnote | assert | variable | 229 | import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
from gdocs.docs_markdown import (
convert_doc_to_markdown,
format_comments_appendix,
format_comments_inline,
parse_drive_comments,
)
SIMPLE_DOC = {
"title": "Simple Test",
"body": {
... | result | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gdocs/test_paragraph_style.py | test_multiple_params_combined | assert | numeric_literal | 17 | import pytest
from unittest.mock import AsyncMock, Mock
from gdocs.docs_helpers import (
build_paragraph_style,
create_update_paragraph_style_request,
)
from gdocs.managers.validation_manager import ValidationManager
class TestBuildParagraphStyle:
def test_multiple_params_combined(self):
style, f... | 3 | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gdocs/test_paragraph_style.py | test_end_to_end_execute | assert | numeric_literal | 33 | import pytest
from unittest.mock import AsyncMock, Mock
from gdocs.docs_helpers import (
build_paragraph_style,
create_update_paragraph_style_request,
)
from gdocs.managers.validation_manager import ValidationManager
class TestBatchManagerIntegration:
def manager(self):
from gdocs.managers.batch_... | 1 | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gdocs/test_paragraph_style.py | test_no_params_returns_empty | assert | collection | 14 | import pytest
from unittest.mock import AsyncMock, Mock
from gdocs.docs_helpers import (
build_paragraph_style,
create_update_paragraph_style_request,
)
from gdocs.managers.validation_manager import ValidationManager
class TestBuildParagraphStyle:
def test_no_params_returns_empty(self):
style, fie... | {} | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gdocs/test_paragraph_style.py | test_no_params_returns_empty | assert | collection | 15 | import pytest
from unittest.mock import AsyncMock, Mock
from gdocs.docs_helpers import (
build_paragraph_style,
create_update_paragraph_style_request,
)
from gdocs.managers.validation_manager import ValidationManager
class TestBuildParagraphStyle:
def test_no_params_returns_empty(self):
style, fie... | [] | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gdocs/test_paragraph_style.py | test_negative_indent_start_rejected | assert | variable | 19 | import pytest
from unittest.mock import AsyncMock, Mock
from gdocs.docs_helpers import (
build_paragraph_style,
create_update_paragraph_style_request,
)
from gdocs.managers.validation_manager import ValidationManager
class TestValidateParagraphStyleParams:
def vm(self):
return ValidationManager()... | msg | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
taylorwilsdon/google_workspace_mcp | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | train | train | tests/gdocs/test_paragraph_style.py | test_returns_none_when_no_styles | assert | none_literal | 13 | import pytest
from unittest.mock import AsyncMock, Mock
from gdocs.docs_helpers import (
build_paragraph_style,
create_update_paragraph_style_request,
)
from gdocs.managers.validation_manager import ValidationManager
class TestCreateUpdateParagraphStyleRequest:
def test_returns_none_when_no_styles(self):
... | None | 53e9bf73a2fbbf56d0f3278aea0b18fedaeb49c4 | 15 | v2_extractor_at_anchor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.