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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/client/test_session.py | test_session_copy | assert | complex_expr | 12 | from atproto_client import Session
from atproto_client.client.session import get_session_pds_endpoint
def test_session_copy() -> None:
session_string = 'handle:::did:::access_jwt:::refresh_jwt:::https://blabla.bla'
session = Session.decode(session_string)
session_copy = session.copy()
assert session_c... | session.access_jwt | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/client/test_session.py | test_session_copy | assert | complex_expr | 13 | from atproto_client import Session
from atproto_client.client.session import get_session_pds_endpoint
def test_session_copy() -> None:
session_string = 'handle:::did:::access_jwt:::refresh_jwt:::https://blabla.bla'
session = Session.decode(session_string)
session_copy = session.copy()
assert session_c... | session.refresh_jwt | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/client/test_session.py | test_get_session_pds_endpoint | assert | string_literal | 11 | from atproto_client import Session
from atproto_client.client.session import get_session_pds_endpoint
def test_get_session_pds_endpoint() -> None:
expected_pds = 'https://blabla.bla'
session = Session('handle', 'did', 'access_jwt', 'refresh_jwt', expected_pds)
assert get_session_pds_endpoint(session) == ex... | 'https://bsky.social' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/test_alias_generator.py | test_model_base_aliases | assert | bool_literal | 8 | from atproto_client.models.base import ModelBase, _alias_generator
from atproto_client.models.utils import get_model_as_dict
def test_model_base_aliases() -> None:
model = TestModel(testField='test', validate=True)
assert model.test_field == 'test'
assert model.validate_ is | True | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/test_alias_generator.py | test_model_base_aliases | assert | string_literal | 7 | from atproto_client.models.base import ModelBase, _alias_generator
from atproto_client.models.utils import get_model_as_dict
def test_model_base_aliases() -> None:
model = TestModel(testField='test', validate=True)
assert model.test_field == | 'test' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/test_alias_generator.py | test_alias_generator | assert | string_literal | 6 | from atproto_client.models.base import ModelBase, _alias_generator
from atproto_client.models.utils import get_model_as_dict
def test_alias_generator() -> None:
assert _alias_generator('test_field') == | 'testField' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_blob_ref.py | test_blob_ref_from_ipld_json | assert | variable | 30 | from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef, IpldLink
from atproto_core.cid import CID
def test_blob_ref_from_ipld_json() -> None:
plain_cid = 'bafyreidfayvfuwqa7qlnopdjiqrxzs6blmoeu4rujcjtnci5beludirz2a'
plain_blob_ref = {
'mim... | instance | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_blob_ref.py | test_blob_ref_to_ipld | assert | variable | 23 | from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef, IpldLink
from atproto_core.cid import CID
def test_blob_ref_to_ipld() -> None:
plain_cid = 'bafyreidfayvfuwqa7qlnopdjiqrxzs6blmoeu4rujcjtnci5beludirz2a'
blob_ref = BlobRef(
mime_type='... | blob_ref | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_blob_ref.py | test_blob_ref_from_ipld_json | assert | complex_expr | 31 | from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef, IpldLink
from atproto_core.cid import CID
def test_blob_ref_from_ipld_json() -> None:
plain_cid = 'bafyreidfayvfuwqa7qlnopdjiqrxzs6blmoeu4rujcjtnci5beludirz2a'
plain_blob_ref = {
'mim... | instance.cid | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_blob_ref.py | test_blob_ref_to_ipld | assert | complex_expr | 13 | from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef, IpldLink
from atproto_core.cid import CID
def test_blob_ref_to_ipld() -> None:
plain_cid = 'bafyreidfayvfuwqa7qlnopdjiqrxzs6blmoeu4rujcjtnci5beludirz2a'
blob_ref = BlobRef(
mime_type='... | blob_ref.ref | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_blob_ref.py | test_blob_ref_to_ipld | assert | complex_expr | 19 | from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef, IpldLink
from atproto_core.cid import CID
def test_blob_ref_to_ipld() -> None:
plain_cid = 'bafyreidfayvfuwqa7qlnopdjiqrxzs6blmoeu4rujcjtnci5beludirz2a'
blob_ref = BlobRef(
mime_type='... | blob_ref2.ref | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_blob_ref.py | test_blob_ref_from_ipld_json | assert | variable | 23 | from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef, IpldLink
from atproto_core.cid import CID
def test_blob_ref_from_ipld_json() -> None:
plain_cid = 'bafyreidfayvfuwqa7qlnopdjiqrxzs6blmoeu4rujcjtnci5beludirz2a'
plain_blob_ref = {
'mim... | plain_blob_ref | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_blob_ref.py | test_blob_ref_from_ipld_json | assert | complex_expr | 32 | from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef, IpldLink
from atproto_core.cid import CID
def test_blob_ref_from_ipld_json() -> None:
plain_cid = 'bafyreidfayvfuwqa7qlnopdjiqrxzs6blmoeu4rujcjtnci5beludirz2a'
plain_blob_ref = {
'mim... | instance.ref.link | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_blob_ref.py | test_blob_ref_to_ipld_json | assert | complex_expr | 14 | from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef, IpldLink
from atproto_core.cid import CID
def test_blob_ref_to_ipld_json() -> None:
plain_cid = 'bafyreidfayvfuwqa7qlnopdjiqrxzs6blmoeu4rujcjtnci5beludirz2a'
blob_ref = BlobRef(
mime_... | blob_ref.ref.link | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_blob_ref.py | test_blob_ref_to_ipld_json | assert | complex_expr | 20 | from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef, IpldLink
from atproto_core.cid import CID
def test_blob_ref_to_ipld_json() -> None:
plain_cid = 'bafyreidfayvfuwqa7qlnopdjiqrxzs6blmoeu4rujcjtnci5beludirz2a'
blob_ref = BlobRef(
mime_... | blob_ref2.ref.link | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_blob_ref.py | test_blob_ref_to_ipld | assert | complex_expr | 29 | from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef, IpldLink
from atproto_core.cid import CID
def test_blob_ref_to_ipld() -> None:
plain_cid = 'bafyreidfayvfuwqa7qlnopdjiqrxzs6blmoeu4rujcjtnci5beludirz2a'
blob_ref = BlobRef(
mime_type='... | blob_ref2_raw['ref'] | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_blob_ref.py | test_blob_ref_from_ipld | assert | func_call | 17 | from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef, IpldLink
from atproto_core.cid import CID
def test_blob_ref_from_ipld() -> None:
plain_cid = 'bafyreidfayvfuwqa7qlnopdjiqrxzs6blmoeu4rujcjtnci5beludirz2a'
plain_blob_ref = {
'mimeType'... | CID.decode(plain_cid) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_changed_lexicon_compatability.py | test_added_new_fields_as_optional | assert | none_literal | 23 | import pytest
from atproto_client import models
from atproto_client.exceptions import ModelError
from atproto_client.models import get_or_create
def test_added_new_fields_as_optional() -> None:
"""New fields must be optional. It means that model must be created without validation errors."""
expected_signing_k... | None | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_changed_lexicon_compatability.py | test_added_new_fields_as_optional | assert | string_literal | 28 | import pytest
from atproto_client import models
from atproto_client.exceptions import ModelError
from atproto_client.models import get_or_create
def test_added_new_fields_as_optional() -> None:
"""New fields must be optional. It means that model must be created without validation errors."""
expected_signing_k... | 'foo' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_changed_lexicon_compatability.py | test_removed_non_optional_field | pytest.raises | variable | 15 | import pytest
from atproto_client import models
from atproto_client.exceptions import ModelError
from atproto_client.models import get_or_create
def test_removed_non_optional_field() -> None:
"""If protocol removed non-optional field, it breaks backward compatibility. We must throw an error."""
test_data = {
... | ModelError) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_changed_lexicon_compatability.py | test_model_serialization | assert | variable | 17 | import pytest
from atproto_client import models
from atproto_client.exceptions import ModelError
from atproto_client.models import get_or_create
def test_model_serialization() -> None:
expected_signing_key = 'blabla'
test_data = {
'signingKey': expected_signing_key,
}
model = get_or_create(test... | expected_signing_key | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_custom_record.py | test_custom_record_deserialization | assert | string_literal | 21 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.dot_dict import DotDict
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('custom_record')
def test_c... | 'foo' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_custom_record.py | test_custom_record_deserialization | assert | collection | 24 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.dot_dict import DotDict
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('custom_record')
def test_c... | ['en'] | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_custom_record.py | test_custom_record_deserialization | assert | variable | 19 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.dot_dict import DotDict
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('custom_record')
def test_c... | expected_custom_record_id | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_custom_record.py | test_custom_record_deserialization | assert | complex_expr | 18 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from atproto_client.models.dot_dict import DotDict
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('custom_record')
def test_c... | models.ids.AppBskyFeedPost | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_did_doc.py | test_did_doc_deserialization | assert | variable | 31 | from atproto_client import models
from atproto_client.models import get_or_create
from atproto_client.models.dot_dict import DotDict
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('did_doc')
def test_did_doc_deserialization() ... | context | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_did_doc.py | test_did_doc_deserialization | assert | variable | 32 | from atproto_client import models
from atproto_client.models import get_or_create
from atproto_client.models.dot_dict import DotDict
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('did_doc')
def test_did_doc_deserialization() ... | service | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_did_doc.py | test_did_doc_deserialization | assert | variable | 34 | from atproto_client import models
from atproto_client.models import get_or_create
from atproto_client.models.dot_dict import DotDict
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('did_doc')
def test_did_doc_deserialization() ... | verification_method_id | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_dot_dict.py | test_dot_dict_input_mutation | assert | numeric_literal | 9 | from atproto_client.models.dot_dict import DotDict
def test_dot_dict_input_mutation() -> None:
test_data = {'a': 1, 'b': {'c': 2}, 'd': [{'e': 3}, 4, 5]}
model = DotDict(test_data)
model['a'] = 2
assert model['a'] == | 2 | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_dot_dict.py | test_dot_dict_input_mutation | assert | numeric_literal | 10 | from atproto_client.models.dot_dict import DotDict
def test_dot_dict_input_mutation() -> None:
test_data = {'a': 1, 'b': {'c': 2}, 'd': [{'e': 3}, 4, 5]}
model = DotDict(test_data)
model['a'] = 2
assert model['a'] == 2
assert test_data['a'] == | 1 | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_dot_dict.py | test_dot_dict_input_mutation | assert | numeric_literal | 13 | from atproto_client.models.dot_dict import DotDict
def test_dot_dict_input_mutation() -> None:
test_data = {'a': 1, 'b': {'c': 2}, 'd': [{'e': 3}, 4, 5]}
model = DotDict(test_data)
model['a'] = 2
assert model['a'] == 2
assert test_data['a'] == 1
model.b.c = 3
assert model.b.c == | 3 | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_dot_dict.py | test_dot_dict_input_mutation | assert | numeric_literal | 17 | from atproto_client.models.dot_dict import DotDict
def test_dot_dict_input_mutation() -> None:
test_data = {'a': 1, 'b': {'c': 2}, 'd': [{'e': 3}, 4, 5]}
model = DotDict(test_data)
model['a'] = 2
assert model['a'] == 2
assert test_data['a'] == 1
model.b.c = 3
assert model.b.c == 3
ass... | 6 | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_extended_like_record.py | test_extended_like_record_deserialization | assert | string_literal | 18 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('extended_like_record')
def test_extended_like_record_deserialization() -> Non... | 'app.bsky.feed.like' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_extended_like_record.py | test_extended_like_record_deserialization | assert | complex_expr | 16 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('extended_like_record')
def test_extended_like_record_deserialization() -> Non... | models.ids.AppBskyFeedLike | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_extended_post_record.py | test_extended_post_record_deserialization | assert | string_literal | 23 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('extended_post_record')
def test_extended_post_record_deserialization() -> Non... | 'kek' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_extended_post_record.py | test_extended_post_record_deserialization | assert | complex_expr | 21 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('extended_post_record')
def test_extended_post_record_deserialization() -> Non... | model.value.model_extra | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_extended_post_record.py | test_extended_post_record_deserialization | assert | complex_expr | 16 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('extended_post_record')
def test_extended_post_record_deserialization() -> Non... | models.ids.AppBskyFeedPost | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_feed_record.py | test_feed_record_avatar_deserialization | assert | string_literal | 20 | import pytest
from atproto_client import models
from atproto_client.models import dot_dict, get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef
from pydantic import ValidationError
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict... | 'blob' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_feed_record.py | test_feed_record_avatar_serialization | assert | variable | 23 | import pytest
from atproto_client import models
from atproto_client.models import dot_dict, get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef
from pydantic import ValidationError
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict... | avatar | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_feed_record.py | test_feed_record_avatar_serialization | assert | complex_expr | 26 | import pytest
from atproto_client import models
from atproto_client.models import dot_dict, get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef
from pydantic import ValidationError
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict... | avatar.cid | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_feed_record.py | test_feed_record_avatar_deserialization | assert | string_literal | 19 | import pytest
from atproto_client import models
from atproto_client.models import dot_dict, get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef
from pydantic import ValidationError
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict... | 'image/png' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_feed_record.py | test_feed_record_model_strict_mode | assert | variable | 27 | import pytest
from atproto_client import models
from atproto_client.models import dot_dict, get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef
from pydantic import ValidationError
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict... | non_str_did | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_feed_record.py | test_feed_record_avatar_serialization | assert | complex_expr | 25 | import pytest
from atproto_client import models
from atproto_client.models import dot_dict, get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef
from pydantic import ValidationError
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict... | avatar.ref.link | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_feed_record.py | test_feed_record_avatar_serialization | assert | complex_expr | 24 | import pytest
from atproto_client import models
from atproto_client.models import dot_dict, get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef
from pydantic import ValidationError
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict... | avatar.mime_type | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_feed_record.py | test_feed_record_py_type_frozen | pytest.raises | variable | 16 | import pytest
from atproto_client import models
from atproto_client.models import dot_dict, get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef
from pydantic import ValidationError
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict... | ValidationError) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_feed_record.py | test_feed_record_deserialization | assert | string_literal | 19 | import pytest
from atproto_client import models
from atproto_client.models import dot_dict, get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef
from pydantic import ValidationError
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict... | 'did:web:feed.atproto.blue' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_feed_record.py | test_feed_record_deserialization | assert | string_literal | 21 | import pytest
from atproto_client import models
from atproto_client.models import dot_dict, get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef
from pydantic import ValidationError
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict... | '2023-07-20T10:17:40.298101' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_feed_record.py | test_feed_record_avatar_serialization | assert | func_call | 20 | import pytest
from atproto_client import models
from atproto_client.models import dot_dict, get_model_as_dict, get_or_create
from atproto_client.models.blob_ref import BlobRef
from pydantic import ValidationError
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict... | get_model_as_dict(restored_avatar) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_get_follows.py | test_get_follows_deserialization | assert | none_literal | 34 | import typing as t
from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('get_follows')
def _find_muted_follow(
model: models.A... | None | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_get_follows.py | test_get_follows_deserialization | assert | bool_literal | 37 | import typing as t
from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('get_follows')
def _find_muted_follow(
model: models.A... | True | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_get_follows.py | test_get_follows_deserialization | assert | variable | 36 | import typing as t
from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('get_follows')
def _find_muted_follow(
model: models.A... | expected_purpose | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_get_follows.py | test_get_follows_serialization | assert | func_call | 33 | import typing as t
from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('get_follows')
def _find_muted_follow(
model: models.A... | get_model_as_dict(restored_model) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_is_record_type.py | test_is_record_type | assert | bool_literal | 20 | from atproto_client import models
from atproto_client.models import get_or_create, is_record_type
from atproto_client.models.dot_dict import DotDict
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_correct_data() -> dict:
return load_data_from_file('post_record')
def loa... | True | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_is_record_type.py | test_is_record_type | assert | bool_literal | 21 | from atproto_client import models
from atproto_client.models import get_or_create, is_record_type
from atproto_client.models.dot_dict import DotDict
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_correct_data() -> dict:
return load_data_from_file('post_record')
def loa... | False | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_like_record.py | test_like_record_deserialization | assert | variable | 22 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('like_record')
def test_like_record_deserialization() -> None:
model = get... | expected_cid | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_like_record.py | test_like_record_deserialization | assert | variable | 26 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('like_record')
def test_like_record_deserialization() -> None:
model = get... | expected_uri | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_post_record.py | test_post_record_deserialization | assert | variable | 22 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('post_record')
def test_post_record_deserialization() -> None:
model = get... | expected_text | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_post_record.py | test_post_record_deserialization | assert | variable | 26 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('post_record')
def test_post_record_deserialization() -> None:
model = get... | expected_langs | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_post_record.py | test_post_record_serialization | assert | variable | 26 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('post_record')
def test_post_record_serialization() -> None:
model = get_o... | expected_created_at | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_resolve_handle.py | test_resolve_handle_deserialization | assert | variable | 18 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('resolve_handle')
def test_resolve_handle_deserialization() -> None:
model... | expected_did | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_resolve_handle.py | test_resolve_handle_serialization | assert | func_call | 17 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('resolve_handle')
def test_resolve_handle_serialization() -> None:
model =... | get_model_as_dict(restored_model) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_thread_view_post_with_embed_media.py | test_thread_view_post_with_embed_media_deserialization | assert | numeric_literal | 24 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('thread_view_post_with_embed_media')
def test_thread_view_post_with_embed_medi... | 1 | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_thread_view_post_with_embed_media.py | test_thread_view_post_with_embed_media_deserialization | assert | string_literal | 18 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('thread_view_post_with_embed_media')
def test_thread_view_post_with_embed_medi... | 'app.bsky.feed.defs#postView' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_thread_view_post_with_embed_media.py | test_thread_view_post_with_embed_media_serialization | assert | func_call | 15 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('thread_view_post_with_embed_media')
def test_thread_view_post_with_embed_medi... | get_model_as_dict(restored_model) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_thread_view_post_with_embed_media.py | test_thread_view_post_with_embed_media_deserialization | assert | string_literal | 17 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('thread_view_post_with_embed_media')
def test_thread_view_post_with_embed_medi... | 'app.bsky.feed.defs#threadViewPost' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_client/models/tests/test_thread_view_post_with_embed_media.py | test_thread_view_post_with_embed_media_deserialization | assert | string_literal | 19 | from atproto_client import models
from atproto_client.models import get_model_as_dict, get_or_create
from tests.test_atproto_client.models.tests.utils import load_data_from_file
def load_test_data() -> dict:
return load_data_from_file('thread_view_post_with_embed_media')
def test_thread_view_post_with_embed_medi... | 'app.bsky.embed.recordWithMedia#view' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_core/test_nsid.py | test_nsid_validation | assert | bool_literal | 8 | from atproto_core.nsid import NSID, validate_nsid
def test_nsid_validation() -> None:
assert validate_nsid('com.atproto.repo-.*', soft_fail=True) is False
assert validate_nsid('com.atproto', soft_fail=True) is False
assert validate_nsid('com.atproto' + '.test' * 90, soft_fail=True) is False
assert val... | True | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_core/test_nsid.py | test_nsid_validation | assert | bool_literal | 5 | from atproto_core.nsid import NSID, validate_nsid
def test_nsid_validation() -> None:
assert validate_nsid('com.atproto.repo-.*', soft_fail=True) is | False | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_core/test_nsid.py | test_nsid_from_str | assert | string_literal | 8 | from atproto_core.nsid import NSID, validate_nsid
def test_nsid_from_str() -> None:
nsid_obj = NSID.from_str('com.atproto.repo.getRecord')
assert nsid_obj.segments == ['com', 'atproto', 'repo', 'getRecord']
assert nsid_obj.authority == 'repo.atproto.com'
assert nsid_obj.name == | 'getRecord' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_core/test_nsid.py | test_nsid_from_str | assert | string_literal | 7 | from atproto_core.nsid import NSID, validate_nsid
def test_nsid_from_str() -> None:
nsid_obj = NSID.from_str('com.atproto.repo.getRecord')
assert nsid_obj.segments == ['com', 'atproto', 'repo', 'getRecord']
assert nsid_obj.authority == | 'repo.atproto.com' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_core/test_nsid.py | test_nsid_from_str | assert | collection | 6 | from atproto_core.nsid import NSID, validate_nsid
def test_nsid_from_str() -> None:
nsid_obj = NSID.from_str('com.atproto.repo.getRecord')
assert nsid_obj.segments == | ['com', 'atproto', 'repo', 'getRecord'] | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_core/test_uri.py | test_at_uri_from_str | assert | variable | 10 | from atproto_core.uri import AtUri
def test_at_uri_from_str() -> None:
test_uri = 'at://did:plc:poqvcn9iqfkgukdvqvb2qzba/app.bsky.feed.post/1jlmwihiomm9m'
at_uri = AtUri.from_str(test_uri)
at_uri2 = AtUri.from_str(test_uri)
assert at_uri == | at_uri2 | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_core/test_uri.py | test_at_uri_from_str | assert | func_call | 12 | from atproto_core.uri import AtUri
def test_at_uri_from_str() -> None:
test_uri = 'at://did:plc:poqvcn9iqfkgukdvqvb2qzba/app.bsky.feed.post/1jlmwihiomm9m'
at_uri = AtUri.from_str(test_uri)
at_uri2 = AtUri.from_str(test_uri)
assert at_uri == at_uri2
assert test_uri == | str(at_uri) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_core/test_uri.py | test_at_uri_from_str | assert | string_literal | 13 | from atproto_core.uri import AtUri
def test_at_uri_from_str() -> None:
test_uri = 'at://did:plc:poqvcn9iqfkgukdvqvb2qzba/app.bsky.feed.post/1jlmwihiomm9m'
at_uri = AtUri.from_str(test_uri)
at_uri2 = AtUri.from_str(test_uri)
assert at_uri == at_uri2
assert test_uri == str(at_uri)
assert at_u... | '1jlmwihiomm9m' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_core/test_uri.py | test_at_uri_hostname_with_digits | assert | variable | 9 | from atproto_core.uri import AtUri
def test_at_uri_hostname_with_digits() -> None:
test_uri = 'at://100ideas.bsky.social'
expected_hostname = '100ideas.bsky.social'
at_uri = AtUri.from_str(test_uri)
assert at_uri.hostname == | expected_hostname | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_core/test_uri.py | test_at_uri_from_str | assert | string_literal | 14 | from atproto_core.uri import AtUri
def test_at_uri_from_str() -> None:
test_uri = 'at://did:plc:poqvcn9iqfkgukdvqvb2qzba/app.bsky.feed.post/1jlmwihiomm9m'
at_uri = AtUri.from_str(test_uri)
at_uri2 = AtUri.from_str(test_uri)
assert at_uri == at_uri2
assert test_uri == str(at_uri)
assert at_ur... | 'app.bsky.feed.post' | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_crypto/test_algs_p256.py | test_decompress_pubkey_invalid_compression | pytest.raises | variable | 7 | import pytest
from atproto_crypto.algs import P256
from atproto_crypto.exceptions import InvalidCompressedPubkeyError
def test_decompress_pubkey_invalid_compression() -> None:
with pytest.raises( | InvalidCompressedPubkeyError) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_crypto/test_did.py | test_multikey_p256_compress_decompress | assert | variable | 11 | import pytest
from atproto_crypto.consts import P256_JWT_ALG, SECP256K1_JWT_ALG
from atproto_crypto.did import Multikey, format_did_key, format_multikey, get_did_key, get_multikey_alg
from atproto_crypto.exceptions import IncorrectMultikeyPrefixError, UnsupportedKeyTypeError
def test_multikey_p256_compress_decompress(... | P256_JWT_ALG | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_crypto/test_did.py | test_get_multikey_alg_secp256k1 | assert | variable | 12 | import pytest
from atproto_crypto.consts import P256_JWT_ALG, SECP256K1_JWT_ALG
from atproto_crypto.did import Multikey, format_did_key, format_multikey, get_did_key, get_multikey_alg
from atproto_crypto.exceptions import IncorrectMultikeyPrefixError, UnsupportedKeyTypeError
def test_get_multikey_alg_secp256k1() -> No... | expected_jwt_alg | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_crypto/test_did.py | test_get_did_key_with_secp256k1 | assert | variable | 13 | import pytest
from atproto_crypto.consts import P256_JWT_ALG, SECP256K1_JWT_ALG
from atproto_crypto.did import Multikey, format_did_key, format_multikey, get_did_key, get_multikey_alg
from atproto_crypto.exceptions import IncorrectMultikeyPrefixError, UnsupportedKeyTypeError
def test_get_did_key_with_secp256k1() -> No... | expected_did_key | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_crypto/test_did.py | test_multikey_secp256k1_compress_decompress | assert | variable | 11 | import pytest
from atproto_crypto.consts import P256_JWT_ALG, SECP256K1_JWT_ALG
from atproto_crypto.did import Multikey, format_did_key, format_multikey, get_did_key, get_multikey_alg
from atproto_crypto.exceptions import IncorrectMultikeyPrefixError, UnsupportedKeyTypeError
def test_multikey_secp256k1_compress_decomp... | SECP256K1_JWT_ALG | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_crypto/test_did.py | test_get_multikey_alg_unsupported_key_type | pytest.raises | variable | 8 | import pytest
from atproto_crypto.consts import P256_JWT_ALG, SECP256K1_JWT_ALG
from atproto_crypto.did import Multikey, format_did_key, format_multikey, get_did_key, get_multikey_alg
from atproto_crypto.exceptions import IncorrectMultikeyPrefixError, UnsupportedKeyTypeError
def test_get_multikey_alg_unsupported_key_t... | UnsupportedKeyTypeError) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_crypto/test_did.py | test_multikey_p256_compress_decompress | assert | variable | 15 | import pytest
from atproto_crypto.consts import P256_JWT_ALG, SECP256K1_JWT_ALG
from atproto_crypto.did import Multikey, format_did_key, format_multikey, get_did_key, get_multikey_alg
from atproto_crypto.exceptions import IncorrectMultikeyPrefixError, UnsupportedKeyTypeError
def test_multikey_p256_compress_decompress(... | expected_pubkey_multibase | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_crypto/test_did.py | test_get_multikey_alg_wrong_multibase | pytest.raises | variable | 8 | import pytest
from atproto_crypto.consts import P256_JWT_ALG, SECP256K1_JWT_ALG
from atproto_crypto.did import Multikey, format_did_key, format_multikey, get_did_key, get_multikey_alg
from atproto_crypto.exceptions import IncorrectMultikeyPrefixError, UnsupportedKeyTypeError
def test_get_multikey_alg_wrong_multibase()... | IncorrectMultikeyPrefixError) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_crypto/test_verify.py | test_verify_signature | assert | variable | 28 | import base64
import json
import os
import pytest
from atproto_crypto.verify import verify_signature
_FIXTURES_FILE_PATH = os.path.join(os.path.dirname(__file__), 'signature-fixtures.json')
def _load_test_cases() -> list:
with open(_FIXTURES_FILE_PATH, encoding='UTF-8') as file:
return json.load(file)
d... | expected_valid | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_atproto_data.py | test_atproto_data_resolve_atproto_data | assert | variable | 13 | import pytest
from atproto_identity.did.resolver import AsyncDidResolver
@pytest.mark.asyncio
async def test_atproto_data_resolve_atproto_data() -> None:
expected_did = 'did:plc:kvwvcn5iqfooopmyzvb4qzba'
expected_did_key = 'did:key:zQ3shc6V2kvUxn7hNmPy9JMToKT7u2NH27SnKNxGL1GcBcS4j'
expected_handle = 'test.... | expected_did | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_atproto_data.py | test_atproto_data_resolve_atproto_data | assert | variable | 15 | import pytest
from atproto_identity.did.resolver import AsyncDidResolver
@pytest.mark.asyncio
async def test_atproto_data_resolve_atproto_data() -> None:
expected_did = 'did:plc:kvwvcn5iqfooopmyzvb4qzba'
expected_did_key = 'did:key:zQ3shc6V2kvUxn7hNmPy9JMToKT7u2NH27SnKNxGL1GcBcS4j'
expected_handle = 'test.... | expected_handle | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_atproto_data.py | test_atproto_data_resolve_atproto_data | assert | variable | 14 | import pytest
from atproto_identity.did.resolver import AsyncDidResolver
@pytest.mark.asyncio
async def test_atproto_data_resolve_atproto_data() -> None:
expected_did = 'did:plc:kvwvcn5iqfooopmyzvb4qzba'
expected_did_key = 'did:key:zQ3shc6V2kvUxn7hNmPy9JMToKT7u2NH27SnKNxGL1GcBcS4j'
expected_handle = 'test.... | expected_did_key | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_did_resolver.py | test_did_resolver_with_web_feed | assert | variable | 14 | import pytest
from atproto_identity.did.resolver import AsyncDidResolver
from atproto_identity.exceptions import DidNotFoundError, DidWebResolverError, UnsupportedDidWebPathError
@pytest.mark.asyncio
async def test_did_resolver_with_web_feed() -> None:
feed_url = 'feed.atproto.blue'
gen_endpoint = f'https://{f... | did_web | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_did_resolver.py | test_did_resolver_with_web_feed | assert | variable | 15 | import pytest
from atproto_identity.did.resolver import AsyncDidResolver
from atproto_identity.exceptions import DidNotFoundError, DidWebResolverError, UnsupportedDidWebPathError
@pytest.mark.asyncio
async def test_did_resolver_with_web_feed() -> None:
feed_url = 'feed.atproto.blue'
gen_endpoint = f'https://{f... | gen_endpoint | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_did_resolver.py | test_did_resolver_with_did_plc | assert | variable | 15 | import pytest
from atproto_identity.did.resolver import AsyncDidResolver
from atproto_identity.exceptions import DidNotFoundError, DidWebResolverError, UnsupportedDidWebPathError
@pytest.mark.asyncio
async def test_did_resolver_with_did_plc() -> None:
expected_handle = 'test.marshal.dev'
expected_key_type = 'M... | expected_handle | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_did_resolver.py | test_did_resolver_with_did_plc | assert | variable | 14 | import pytest
from atproto_identity.did.resolver import AsyncDidResolver
from atproto_identity.exceptions import DidNotFoundError, DidWebResolverError, UnsupportedDidWebPathError
@pytest.mark.asyncio
async def test_did_resolver_with_did_plc() -> None:
expected_handle = 'test.marshal.dev'
expected_key_type = 'M... | expected_did_plc | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_did_resolver.py | test_did_resolver_with_did_plc | assert | variable | 16 | import pytest
from atproto_identity.did.resolver import AsyncDidResolver
from atproto_identity.exceptions import DidNotFoundError, DidWebResolverError, UnsupportedDidWebPathError
@pytest.mark.asyncio
async def test_did_resolver_with_did_plc() -> None:
expected_handle = 'test.marshal.dev'
expected_key_type = 'M... | expected_key_type | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_did_resolver.py | test_did_resolver_with_unknown_did_plc | pytest.raises | variable | 8 | import pytest
from atproto_identity.did.resolver import AsyncDidResolver
from atproto_identity.exceptions import DidNotFoundError, DidWebResolverError, UnsupportedDidWebPathError
@pytest.mark.asyncio
async def test_did_resolver_with_unknown_did_plc() -> None:
with pytest.raises( | DidNotFoundError) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_did_resolver.py | test_did_resolver_with_unknown_did_web | pytest.raises | variable | 8 | import pytest
from atproto_identity.did.resolver import AsyncDidResolver
from atproto_identity.exceptions import DidNotFoundError, DidWebResolverError, UnsupportedDidWebPathError
@pytest.mark.asyncio
async def test_did_resolver_with_unknown_did_web() -> None:
with pytest.raises( | DidWebResolverError) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_did_resolver.py | test_did_resolver_with_invalid_did_web | pytest.raises | variable | 8 | import pytest
from atproto_identity.did.resolver import AsyncDidResolver
from atproto_identity.exceptions import DidNotFoundError, DidWebResolverError, UnsupportedDidWebPathError
@pytest.mark.asyncio
async def test_did_resolver_with_invalid_did_web() -> None:
with pytest.raises( | UnsupportedDidWebPathError) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_did_resolver_cache.py | test_did_resolver_cache_with_web_feed | assert | variable | 23 | import pytest
from atproto_identity.cache.in_memory_cache import AsyncDidInMemoryCache
from atproto_identity.did.resolver import AsyncDidResolver
@pytest.mark.asyncio
async def test_did_resolver_cache_with_web_feed() -> None:
feed_url = 'feed.atproto.blue'
did_web = f'did:web:{feed_url}'
cache = AsyncDidI... | did_doc | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_did_resolver_cache.py | test_did_resolver_cache_with_web_feed | assert | func_call | 20 | import pytest
from atproto_identity.cache.in_memory_cache import AsyncDidInMemoryCache
from atproto_identity.did.resolver import AsyncDidResolver
@pytest.mark.asyncio
async def test_did_resolver_cache_with_web_feed() -> None:
feed_url = 'feed.atproto.blue'
did_web = f'did:web:{feed_url}'
cache = AsyncDidI... | id(new_did_doc) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_handle_resolver.py | test_handle_resolver | assert | variable | 12 | import pytest
from atproto_identity.exceptions import DidNotFoundError
from atproto_identity.handle.resolver import AsyncHandleResolver
@pytest.mark.asyncio
async def test_handle_resolver() -> None:
expected_handle = 'test.marshal.dev'
expected_did_plc = 'did:plc:kvwvcn5iqfooopmyzvb4qzba'
did_plc = await ... | expected_did_plc | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
MarshalX/atproto | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | train | train | tests/test_atproto_identity/test_async_handle_resolver.py | test_handle_resolver_with_invalid_handle_url | pytest.raises | variable | 10 | import pytest
from atproto_identity.exceptions import DidNotFoundError
from atproto_identity.handle.resolver import AsyncHandleResolver
@pytest.mark.asyncio
async def test_handle_resolver_with_invalid_handle_url() -> None:
expected_handle = 'test123.marshal.dev'
with pytest.raises( | DidNotFoundError) | e1a15f9c47961647df174609c95ce0ccd0da23ab | 47 | v2_extractor_at_anchor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.