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
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_attributes.py
test_name_attribute
self.assertEqual
numeric_literal
18
import unittest from textwrap import dedent from xmlschema import XMLSchemaParseError, XMLSchemaValidationError from xmlschema.validators import XMLSchema11, XsdAttribute, XsdAttributeGroup from xmlschema.testing import XsdValidatorTestCase from xmlschema.names import XSI_NAMESPACE, XSD_ANY_SIMPLE_TYPE, XSD_STRING cl...
2)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_attributes.py
test_name_attribute
self.assertEqual
numeric_literal
21
import unittest from textwrap import dedent from xmlschema import XMLSchemaParseError, XMLSchemaValidationError from xmlschema.validators import XMLSchema11, XsdAttribute, XsdAttributeGroup from xmlschema.testing import XsdValidatorTestCase from xmlschema.names import XSI_NAMESPACE, XSD_ANY_SIMPLE_TYPE, XSD_STRING cl...
0)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_attributes.py
test_attribute_group_reference
self.assertEqual
numeric_literal
27
import unittest from textwrap import dedent from xmlschema import XMLSchemaParseError, XMLSchemaValidationError from xmlschema.validators import XMLSchema11, XsdAttribute, XsdAttributeGroup from xmlschema.testing import XsdValidatorTestCase from xmlschema.names import XSI_NAMESPACE, XSD_ANY_SIMPLE_TYPE, XSD_STRING cl...
3)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_builtins.py
test_facet_lists
self.assertLessEqual
numeric_literal
26
import unittest from textwrap import dedent from xmlschema import XMLSchemaDecodeError, XMLSchemaEncodeError, \ XMLSchemaValidationError, XMLSchema10, XMLSchema11 from xmlschema.names import XSD_STRING from xmlschema.helpers import is_etree_element from xmlschema.validators.builtins import XSD_10_BUILTIN_TYPES, \ ...
1)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_complex_types.py
test_sequence_extension
self.assertEqual
numeric_literal
45
import unittest import warnings from textwrap import dedent from xml.etree.ElementTree import Element from xmlschema import XMLSchemaParseError, XMLSchemaModelError from xmlschema.validators import XMLSchema11 from xmlschema.testing import XsdValidatorTestCase class TestXsd11ComplexType(TestXsdComplexType): sche...
3)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_complex_types.py
test_sequence_extension
self.assertEqual
numeric_literal
49
import unittest import warnings from textwrap import dedent from xml.etree.ElementTree import Element from xmlschema import XMLSchemaParseError, XMLSchemaModelError from xmlschema.validators import XMLSchema11 from xmlschema.testing import XsdValidatorTestCase class TestXsd11ComplexType(TestXsdComplexType): sche...
2)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_complex_types.py
test_sequence_extension
self.assertEqual
numeric_literal
57
import unittest import warnings from textwrap import dedent from xml.etree.ElementTree import Element from xmlschema import XMLSchemaParseError, XMLSchemaModelError from xmlschema.validators import XMLSchema11 from xmlschema.testing import XsdValidatorTestCase class TestXsd11ComplexType(TestXsdComplexType): sche...
1)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_elements.py
test_name_attribute
self.assertEqual
numeric_literal
17
import unittest from xmlschema import XMLSchemaParseError from xmlschema.validators import XMLSchema11 from xmlschema.testing import XsdValidatorTestCase class TestXsdElements(XsdValidatorTestCase): def test_name_attribute(self): schema = self.check_schema(""" <xs:group name="group"> ...
1)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_exceptions.py
test_sourceline_property
self.assertEqual
numeric_literal
33
import unittest import os import io import pathlib from xml.etree import ElementTree from xmlschema import XMLSchema, XMLResource from xmlschema.helpers import is_etree_element from xmlschema.validators.exceptions import XMLSchemaValidatorError, \ XMLSchemaNotBuiltError, XMLSchemaParseError, XMLSchemaModelDepthErr...
1)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_exceptions.py
test_invalid_child_property
self.assertEqual
numeric_literal
54
import unittest import os import io import pathlib from xml.etree import ElementTree from xmlschema import XMLSchema, XMLResource from xmlschema.helpers import is_etree_element from xmlschema.validators.exceptions import XMLSchemaValidatorError, \ XMLSchemaNotBuiltError, XMLSchemaParseError, XMLSchemaModelDepthErr...
3)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_facets.py
test_pattern_facet
self.assertEqual
numeric_literal
53
import unittest import decimal import pathlib from xml.etree import ElementTree from textwrap import dedent from xmlschema import XMLSchema10, XMLSchema11, XMLSchemaValidationError, \ XMLSchemaParseError from xmlschema.names import XSD_NAMESPACE, XSD_LENGTH, XSD_MIN_LENGTH, XSD_MAX_LENGTH, \ XSD_WHITE_SPACE, X...
2)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_facets.py
test_pattern_facet
self.assertEqual
numeric_literal
58
import unittest import decimal import pathlib from xml.etree import ElementTree from textwrap import dedent from xmlschema import XMLSchema10, XMLSchema11, XMLSchemaValidationError, \ XMLSchemaParseError from xmlschema.names import XSD_NAMESPACE, XSD_LENGTH, XSD_MIN_LENGTH, XSD_MAX_LENGTH, \ XSD_WHITE_SPACE, X...
1)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_global_maps.py
test_clear
self.assertEqual
numeric_literal
26
import unittest from xmlschema import XMLSchema10, XMLSchema11 from xmlschema.names import XSD_ELEMENT, XSD_STRING, XSD_SIMPLE_TYPE class TestXsdGlobalsMaps(unittest.TestCase): def setUpClass(cls): XMLSchema10.meta_schema.build() XMLSchema11.meta_schema.build() def tearDownClass(cls): ...
0)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_global_maps.py
test_xsd_10_globals
self.assertEqual
numeric_literal
18
import unittest from xmlschema import XMLSchema10, XMLSchema11 from xmlschema.names import XSD_ELEMENT, XSD_STRING, XSD_SIMPLE_TYPE class TestXsdGlobalsMaps(unittest.TestCase): def setUpClass(cls): XMLSchema10.meta_schema.build() XMLSchema11.meta_schema.build() def tearDownClass(cls): ...
2)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_global_maps.py
test_xsd_10_globals
self.assertEqual
numeric_literal
20
import unittest from xmlschema import XMLSchema10, XMLSchema11 from xmlschema.names import XSD_ELEMENT, XSD_STRING, XSD_SIMPLE_TYPE class TestXsdGlobalsMaps(unittest.TestCase): def setUpClass(cls): XMLSchema10.meta_schema.build() XMLSchema11.meta_schema.build() def tearDownClass(cls): ...
8)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_global_maps.py
test_xsd_10_globals
self.assertEqual
numeric_literal
21
import unittest from xmlschema import XMLSchema10, XMLSchema11 from xmlschema.names import XSD_ELEMENT, XSD_STRING, XSD_SIMPLE_TYPE class TestXsdGlobalsMaps(unittest.TestCase): def setUpClass(cls): XMLSchema10.meta_schema.build() XMLSchema11.meta_schema.build() def tearDownClass(cls): ...
3)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_global_maps.py
test_xsd_11_globals
self.assertEqual
numeric_literal
21
import unittest from xmlschema import XMLSchema10, XMLSchema11 from xmlschema.names import XSD_ELEMENT, XSD_STRING, XSD_SIMPLE_TYPE class TestXsdGlobalsMaps(unittest.TestCase): def setUpClass(cls): XMLSchema10.meta_schema.build() XMLSchema11.meta_schema.build() def tearDownClass(cls): ...
4)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_global_maps.py
test_xsd_11_globals
self.assertEqual
numeric_literal
27
import unittest from xmlschema import XMLSchema10, XMLSchema11 from xmlschema.names import XSD_ELEMENT, XSD_STRING, XSD_SIMPLE_TYPE class TestXsdGlobalsMaps(unittest.TestCase): def setUpClass(cls): XMLSchema10.meta_schema.build() XMLSchema11.meta_schema.build() def tearDownClass(cls): ...
1)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_groups.py
test_effective_min_occurs
self.assertEqual
numeric_literal
14
import unittest from textwrap import dedent from typing import Any, Union, List, Optional from xmlschema import XMLSchema, XMLSchemaModelError, XMLSchemaModelDepthError from xmlschema.exceptions import XMLSchemaValueError from xmlschema.validators import ParticleMixin, XsdGroup, XsdElement class TestXsdGroups(unittes...
0)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_groups.py
test_effective_min_occurs
self.assertEqual
numeric_literal
16
import unittest from textwrap import dedent from typing import Any, Union, List, Optional from xmlschema import XMLSchema, XMLSchemaModelError, XMLSchemaModelDepthError from xmlschema.exceptions import XMLSchemaValueError from xmlschema.validators import ParticleMixin, XsdGroup, XsdElement class TestXsdGroups(unittes...
1)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_groups.py
test_effective_max_occurs
self.assertEqual
numeric_literal
20
import unittest from textwrap import dedent from typing import Any, Union, List, Optional from xmlschema import XMLSchema, XMLSchemaModelError, XMLSchemaModelDepthError from xmlschema.exceptions import XMLSchemaValueError from xmlschema.validators import ParticleMixin, XsdGroup, XsdElement class TestXsdGroups(unittes...
2)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_groups.py
test_iter_model
self.assertEqual
numeric_literal
22
import unittest from textwrap import dedent from typing import Any, Union, List, Optional from xmlschema import XMLSchema, XMLSchemaModelError, XMLSchemaModelDepthError from xmlschema.exceptions import XMLSchemaValueError from xmlschema.validators import ParticleMixin, XsdGroup, XsdElement class TestXsdGroups(unittes...
6)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_identities.py
test_duplicated_key_name
self.assertEqual
numeric_literal
27
import unittest import xml.etree.ElementTree as ElementTree from xmlschema import XMLSchemaParseError, XMLSchemaValidationError from xmlschema.validators import XMLSchema11 from xmlschema.validators.identities import IdentityCounter, KeyrefCounter from xmlschema.testing import XsdValidatorTestCase class TestXsdIdenti...
2)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_identities.py
test_missing_selector_path
self.assertEqual
numeric_literal
21
import unittest import xml.etree.ElementTree as ElementTree from xmlschema import XMLSchemaParseError, XMLSchemaValidationError from xmlschema.validators import XMLSchema11 from xmlschema.validators.identities import IdentityCounter, KeyrefCounter from xmlschema.testing import XsdValidatorTestCase class TestXsdIdenti...
1)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_identities.py
test_identity_counter
self.assertEqual
numeric_literal
33
import unittest import xml.etree.ElementTree as ElementTree from xmlschema import XMLSchemaParseError, XMLSchemaValidationError from xmlschema.validators import XMLSchema11 from xmlschema.validators.identities import IdentityCounter, KeyrefCounter from xmlschema.testing import XsdValidatorTestCase class TestXsdIdenti...
3)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_notations.py
test_parse
self.assertEqual
numeric_literal
44
import unittest from xml.etree import ElementTree from xmlschema import XMLSchemaParseError from xmlschema.names import XSD_NOTATION from xmlschema.validators import XMLSchema10, XMLSchema11, XsdNotation class TestXsd10Notations(unittest.TestCase): schema_class = XMLSchema10 def test_parse(self): sc...
2)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_particles.py
test_effective_min_occurs_property
self.assertEqual
numeric_literal
18
import os import unittest from xml.etree import ElementTree from xmlschema import XMLSchema10, XMLSchemaParseError from xmlschema.validators.particles import ParticleMixin CASES_DIR = os.path.join(os.path.dirname(__file__), '../test_cases') class TestParticleMixin(unittest.TestCase): def setUpClass(cls): ...
1)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_particles.py
test_effective_min_occurs_property
self.assertEqual
numeric_literal
19
import os import unittest from xml.etree import ElementTree from xmlschema import XMLSchema10, XMLSchemaParseError from xmlschema.validators.particles import ParticleMixin CASES_DIR = os.path.join(os.path.dirname(__file__), '../test_cases') class TestParticleMixin(unittest.TestCase): def setUpClass(cls): ...
0)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_facets.py
test_min_inclusive_facet
self.assertIsNone
func_call
39
import unittest import decimal import pathlib from xml.etree import ElementTree from textwrap import dedent from xmlschema import XMLSchema10, XMLSchema11, XMLSchemaValidationError, \ XMLSchemaParseError from xmlschema.names import XSD_NAMESPACE, XSD_LENGTH, XSD_MIN_LENGTH, XSD_MAX_LENGTH, \ XSD_WHITE_SPACE, X...
facet(0))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validation/test_validation.py
test_optional_errors_collector
self.assertTrue
func_call
24
import unittest import os import decimal from textwrap import dedent from xml.etree import ElementTree import xmlschema from xmlschema import XMLSchemaValidationError, XMLSchemaStopValidation, \ XMLSchemaChildrenValidationError from xmlschema.validators import XMLSchema11 from xmlschema.testing import XsdValidato...
len(chunks))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validation/test_validation.py
test_optional_errors_collector
self.assertTrue
func_call
26
import unittest import os import decimal from textwrap import dedent from xml.etree import ElementTree import xmlschema from xmlschema import XMLSchemaValidationError, XMLSchemaStopValidation, \ XMLSchemaChildrenValidationError from xmlschema.validators import XMLSchema11 from xmlschema.testing import XsdValidato...
len(errors))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/test_locations.py
test_is_url_function
self.assertFalse
func_call
80
import unittest import os import pathlib import platform from urllib.parse import urlsplit, uses_relative from pathlib import Path, PurePath, PureWindowsPath, PurePosixPath from unittest.mock import patch, MagicMock import xmlschema.locations from xmlschema.locations import LocationPath, LocationPosixPath, LocationWi...
is_url(None))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validation/test_validation.py
test_lxml
self.assertTrue
func_call
31
import unittest import os import decimal from textwrap import dedent from xml.etree import ElementTree import xmlschema from xmlschema import XMLSchemaValidationError, XMLSchemaStopValidation, \ XMLSchemaChildrenValidationError from xmlschema.validators import XMLSchema11 from xmlschema.testing import XsdValidato...
xs.is_valid(xt1))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validation/test_validation.py
test_lxml
self.assertFalse
func_call
32
import unittest import os import decimal from textwrap import dedent from xml.etree import ElementTree import xmlschema from xmlschema import XMLSchemaValidationError, XMLSchemaStopValidation, \ XMLSchemaChildrenValidationError from xmlschema.validators import XMLSchema11 from xmlschema.testing import XsdValidato...
xs.is_valid(xt2))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
xmlschema/testing/_builders.py
check_schema_serialization
self.assertEqual
func_call
394
import pdb import os import ast import pickle import re import time import logging import tempfile import warnings from importlib import util as importlib_util from xml.etree import ElementTree from elementpath.etree import PyElementTree, etree_tostring import xmlschema from xmlschema import XMLSchemaBase, XMLSchema1...
len(self.errors))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
xmlschema/testing/_builders.py
check_iter_errors
self.assertEqual
func_call
533
import pdb import os import ast import pickle import re import time import logging import tempfile import warnings from importlib import util as importlib_util from xml.etree import ElementTree from elementpath.etree import PyElementTree, etree_tostring import xmlschema from xmlschema import XMLSchemaBase, XMLSchema1...
len(lazy_errors))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
xmlschema/testing/_case_class.py
check_schema
self.assertTrue
func_call
145
import unittest import re import os from textwrap import dedent from xml.etree.ElementTree import Element, iselement from xmlschema.exceptions import XMLSchemaValueError from xmlschema.names import XSD_NAMESPACE, XSI_NAMESPACE, XSD_SCHEMA from xmlschema.helpers import get_namespace from xmlschema.resources import fetc...
expected(schema))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validation/test_validation.py
test_extra_validator_argument
self.assertIn
func_call
37
import unittest import os import decimal from textwrap import dedent from xml.etree import ElementTree import xmlschema from xmlschema import XMLSchemaValidationError, XMLSchemaStopValidation, \ XMLSchemaChildrenValidationError from xmlschema.validators import XMLSchema11 from xmlschema.testing import XsdValidato...
str(ec.exception))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
xmlschema/extras/codegen.py
sort_types
assert
func_call
401
import os import re import sys import inspect import logging from abc import ABC, ABCMeta from fnmatch import fnmatch from pathlib import Path from typing import Optional, List from jinja2 import Environment, ChoiceLoader, FileSystemLoader, \ TemplateNotFound, TemplateAssertionError from elementpath import datatyp...
len(ordered_types)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_notations.py
test_parse
self.assertIn
func_call
25
import unittest from xml.etree import ElementTree from xmlschema import XMLSchemaParseError from xmlschema.names import XSD_NOTATION from xmlschema.validators import XMLSchema10, XMLSchema11, XsdNotation class TestXsd10Notations(unittest.TestCase): schema_class = XMLSchema10 def test_parse(self): sc...
str(ctx.exception))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_particles.py
test_parse_particle
self.assertIn
func_call
29
import os import unittest from xml.etree import ElementTree from xmlschema import XMLSchema10, XMLSchemaParseError from xmlschema.validators.particles import ParticleMixin CASES_DIR = os.path.join(os.path.dirname(__file__), '../test_cases') class TestParticleMixin(unittest.TestCase): def setUpClass(cls): ...
str(ctx.exception))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_particles.py
test_is_single
self.assertFalse
func_call
23
import os import unittest from xml.etree import ElementTree from xmlschema import XMLSchema10, XMLSchemaParseError from xmlschema.validators.particles import ParticleMixin CASES_DIR = os.path.join(os.path.dirname(__file__), '../test_cases') class TestParticleMixin(unittest.TestCase): def setUpClass(cls): ...
wildcard.is_single())
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_builtins.py
test_date_type
self.assertFalse
func_call
33
import unittest from textwrap import dedent from xmlschema import XMLSchemaDecodeError, XMLSchemaEncodeError, \ XMLSchemaValidationError, XMLSchema10, XMLSchema11 from xmlschema.names import XSD_STRING from xmlschema.helpers import is_etree_element from xmlschema.validators.builtins import XSD_10_BUILTIN_TYPES, \ ...
date_type.is_valid(''))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_builtins.py
test_g_day_type
self.assertFalse
func_call
29
import unittest from textwrap import dedent from xmlschema import XMLSchemaDecodeError, XMLSchemaEncodeError, \ XMLSchemaValidationError, XMLSchema10, XMLSchema11 from xmlschema.names import XSD_STRING from xmlschema.helpers import is_etree_element from xmlschema.validators.builtins import XSD_10_BUILTIN_TYPES, \ ...
g_day_type.is_valid(''))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/test_package.py
test_base_schema_files
self.assertTrue
func_call
35
import unittest import glob import fileinput import os import re import importlib import pathlib class TestPackaging(unittest.TestCase): def setUpClass(cls): cls.test_dir = os.path.dirname(os.path.abspath(__file__)) cls.package_dir = os.path.dirname(cls.test_dir) cls.source_dir = os.path.j...
os.path.isfile(filename))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_particles.py
test_is_empty
self.assertFalse
func_call
19
import os import unittest from xml.etree import ElementTree from xmlschema import XMLSchema10, XMLSchemaParseError from xmlschema.validators.particles import ParticleMixin CASES_DIR = os.path.join(os.path.dirname(__file__), '../test_cases') class TestParticleMixin(unittest.TestCase): def setUpClass(cls): ...
ParticleMixin().is_empty())
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_simple_types.py
test_is_empty
self.assertTrue
func_call
37
import unittest from xmlschema import XMLSchemaParseError, XMLSchemaValidationError from xmlschema.names import XSD_LIST, XSD_UNION from xmlschema.validators import XMLSchema11 from xmlschema.testing import XsdValidatorTestCase class TestXsdSimpleTypes(XsdValidatorTestCase): def test_is_empty(self): sche...
schema.types['emptyType1'].is_empty())
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_simple_types.py
test_is_empty
self.assertTrue
func_call
38
import unittest from xmlschema import XMLSchemaParseError, XMLSchemaValidationError from xmlschema.names import XSD_LIST, XSD_UNION from xmlschema.validators import XMLSchema11 from xmlschema.testing import XsdValidatorTestCase class TestXsdSimpleTypes(XsdValidatorTestCase): def test_is_empty(self): sche...
schema.types['emptyType2'].is_empty())
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_simple_types.py
test_is_empty
self.assertTrue
func_call
39
import unittest from xmlschema import XMLSchemaParseError, XMLSchemaValidationError from xmlschema.names import XSD_LIST, XSD_UNION from xmlschema.validators import XMLSchema11 from xmlschema.testing import XsdValidatorTestCase class TestXsdSimpleTypes(XsdValidatorTestCase): def test_is_empty(self): sche...
schema.types['emptyType3'].is_empty())
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/test_package.py
test_version
self.assertTrue
func_call
41
import unittest import glob import fileinput import os import re import importlib import pathlib class TestPackaging(unittest.TestCase): def setUpClass(cls): cls.test_dir = os.path.dirname(os.path.abspath(__file__)) cls.package_dir = os.path.dirname(cls.test_dir) cls.source_dir = os.path.j...
version == match.group(1).strip('\'\"'))
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validation/test_encoding.py
check_encode
self.assertEqual
complex_expr
31
import os import unittest from textwrap import dedent from xml.etree import ElementTree from elementpath import datatypes from elementpath.etree import etree_tostring from xmlschema import XMLSchemaEncodeError, XMLSchemaValidationError from xmlschema.converters import UnorderedConverter, JsonMLConverter from xmlschem...
obj[0])
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
xmlschema/testing/_case_class.py
check_errors
self.assertTrue
complex_expr
158
import unittest import re import os from textwrap import dedent from xml.etree.ElementTree import Element, iselement from xmlschema.exceptions import XMLSchemaValueError from xmlschema.names import XSD_NAMESPACE, XSI_NAMESPACE, XSD_SCHEMA from xmlschema.helpers import get_namespace from xmlschema.resources import fetc...
e.path)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/test_xpath.py
test_initialization
self.assertIs
complex_expr
30
import unittest import os import pathlib from xml.etree import ElementTree from elementpath import XPath1Parser, XPath2Parser, Selector, LazyElementNode from xmlschema import XMLSchema10, XMLSchema11 from xmlschema.names import XSD_NAMESPACE from xmlschema.xpath import XMLSchemaProxy, XPathElement from xmlschema.vali...
self.xs1)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_models.py
test_meta_schema_top_model
self.assertEqual
complex_expr
115
import unittest import os.path import warnings from textwrap import dedent from typing import Any, Union, List, Optional from xmlschema import XMLSchema10, XMLSchema11 from xmlschema.exceptions import XMLSchemaValueError from xmlschema.validators.exceptions import XMLSchemaValidationError from xmlschema.validators.par...
group[1])
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_models.py
test_meta_schema_top_model
self.assertEqual
complex_expr
117
import unittest import os.path import warnings from textwrap import dedent from typing import Any, Union, List, Optional from xmlschema import XMLSchema10, XMLSchema11 from xmlschema.exceptions import XMLSchemaValueError from xmlschema.validators.exceptions import XMLSchemaValidationError from xmlschema.validators.par...
group[2])
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_models.py
test_meta_schema_top_model
self.assertEqual
complex_expr
119
import unittest import os.path import warnings from textwrap import dedent from typing import Any, Union, List, Optional from xmlschema import XMLSchema10, XMLSchema11 from xmlschema.exceptions import XMLSchemaValueError from xmlschema.validators.exceptions import XMLSchemaValidationError from xmlschema.validators.par...
group[3])
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
xmlschema/testing/_builders.py
check_decode_to_objects
self.assertEqual
complex_expr
443
import pdb import os import ast import pickle import re import time import logging import tempfile import warnings from importlib import util as importlib_util from xml.etree import ElementTree from elementpath.etree import PyElementTree, etree_tostring import xmlschema from xmlschema import XMLSchemaBase, XMLSchema1...
root.tag)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validation/test_validation.py
test_optional_errors_collector
self.assertIs
complex_expr
27
import unittest import os import decimal from textwrap import dedent from xml.etree import ElementTree import xmlschema from xmlschema import XMLSchemaValidationError, XMLSchemaStopValidation, \ XMLSchemaChildrenValidationError from xmlschema.validators import XMLSchema11 from xmlschema.testing import XsdValidato...
errors[0])
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_exceptions.py
test_validator_error_repr_no_urls
self.assertEqual
complex_expr
32
import unittest import os import io import pathlib from xml.etree import ElementTree from xmlschema import XMLSchema, XMLResource from xmlschema.helpers import is_etree_element from xmlschema.validators.exceptions import XMLSchemaValidatorError, \ XMLSchemaNotBuiltError, XMLSchemaParseError, XMLSchemaModelDepthErr...
error.msg)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
xmlschema/testing/_builders.py
check_validation_with_generated_code
self.assertIsInstance
complex_expr
555
import pdb import os import ast import pickle import re import time import logging import tempfile import warnings from importlib import util as importlib_util from xml.etree import ElementTree from elementpath.etree import PyElementTree, etree_tostring import xmlschema from xmlschema import XMLSchemaBase, XMLSchema1...
ast.Module)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
xmlschema/testing/_builders.py
check_schema_serialization
self.assertEqual
complex_expr
395
import pdb import os import ast import pickle import re import time import logging import tempfile import warnings from importlib import util as importlib_util from xml.etree import ElementTree from elementpath.etree import PyElementTree, etree_tostring import xmlschema from xmlschema import XMLSchemaBase, XMLSchema1...
self.chunks)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
xmlschema/testing/_builders.py
check_validation_with_generated_code
self.assertEqual
complex_expr
581
import pdb import os import ast import pickle import re import time import logging import tempfile import warnings from importlib import util as importlib_util from xml.etree import ElementTree from elementpath.etree import PyElementTree, etree_tostring import xmlschema from xmlschema import XMLSchemaBase, XMLSchema1...
xml_root.tag)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/test_package.py
test_base_schema_files
self.assertIsInstance
complex_expr
36
import unittest import glob import fileinput import os import re import importlib import pathlib class TestPackaging(unittest.TestCase): def setUpClass(cls): cls.test_dir = os.path.dirname(os.path.abspath(__file__)) cls.package_dir = os.path.dirname(cls.test_dir) cls.source_dir = os.path.j...
et.ElementTree)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
xmlschema/testing/_builders.py
check_decode_api
self.assertEqual
complex_expr
403
import pdb import os import ast import pickle import re import time import logging import tempfile import warnings from importlib import util as importlib_util from xml.etree import ElementTree from elementpath.etree import PyElementTree, etree_tostring import xmlschema from xmlschema import XMLSchemaBase, XMLSchema1...
self.chunks[0])
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validation/test_validation.py
test_issue_213
self.assertIsInstance
complex_expr
33
import unittest import os import decimal from textwrap import dedent from xml.etree import ElementTree import xmlschema from xmlschema import XMLSchemaValidationError, XMLSchemaStopValidation, \ XMLSchemaChildrenValidationError from xmlschema.validators import XMLSchema11 from xmlschema.testing import XsdValidato...
decimal.Decimal)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/validators/test_notations.py
test_parse
self.assertIn
complex_expr
18
import unittest from xml.etree import ElementTree from xmlschema import XMLSchemaParseError from xmlschema.names import XSD_NOTATION from xmlschema.validators import XMLSchema10, XMLSchema11, XsdNotation class TestXsd10Notations(unittest.TestCase): schema_class = XMLSchema10 def test_parse(self): sc...
schema.notations)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/test_translations.py
test_install
self.assertNotIn
complex_expr
35
import unittest import gettext import warnings import pathlib from xmlschema import XMLSchema, translation from xmlschema.testing import SKIP_REMOTE_TESTS class TestTranslations(unittest.TestCase): def setUpClass(cls): XMLSchema.meta_schema.build() cls.translation_classes = (gettext.NullTranslati...
builtins.__dict__)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissaschool/xmlschema
39ad414a2c71471d2224360876f71a2be204096d
331
train
train
tests/test_translations.py
test_install
self.assertFalse
complex_expr
24
import unittest import gettext import warnings import pathlib from xmlschema import XMLSchema, translation from xmlschema.testing import SKIP_REMOTE_TESTS class TestTranslations(unittest.TestCase): def setUpClass(cls): XMLSchema.meta_schema.build() cls.translation_classes = (gettext.NullTranslati...
translation._installed)
39ad414a2c71471d2224360876f71a2be204096d
331
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bundles_index_view.py
assertBundleOrder
self.assertEqual
variable
21
from django.test import TestCase from django.urls import reverse from bookmarks.models import BookmarkBundle from bookmarks.tests.helpers import BookmarkFactoryMixin class BundleIndexViewTestCase(TestCase, BookmarkFactoryMixin): def setUp(self) -> None: user = self.get_or_create_test_user() self....
i)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmark_archived_view.py
assertBulkActionForm
self.assertEqual
variable
34
import urllib.parse from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from bookmarks.models import BookmarkSearch, UserProfile from bookmarks.tests.helpers import ( BookmarkFactoryMixin, BookmarkListTestMixin, TagCloudTestMixin, ) class BookmarkA...
url)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmark_index_view.py
assertBulkActionForm
self.assertEqual
variable
34
import urllib.parse from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from bookmarks.models import BookmarkSearch, UserProfile from bookmarks.tests.helpers import ( BookmarkFactoryMixin, BookmarkListTestMixin, TagCloudTestMixin, ) class BookmarkI...
url)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmarks_list_template.py
assertFavicon
self.assertEqual
variable
153
import datetime from typing import Type from dateutil.relativedelta import relativedelta from django.contrib.auth.models import AnonymousUser from django.http import HttpResponse from django.template import Template, RequestContext from django.test import TestCase, RequestFactory from django.urls import reverse from d...
url)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_context_path.py
test_route_with_context_path
self.assertEqual
variable
33
import importlib from django.test import TestCase, override_settings from django.urls import reverse class ContextPathTestCase(TestCase): def setUp(self): self.urls_module = importlib.import_module("bookmarks.urls") def tearDown(self): importlib.reload(self.urls_module) @override_settin...
url)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_custom_css_view.py
test_with_custom_css
self.assertEqual
variable
21
from django.test import TestCase from django.urls import reverse from bookmarks.tests.helpers import BookmarkFactoryMixin class CustomCssViewTestCase(TestCase, BookmarkFactoryMixin): def setUp(self) -> None: user = self.get_or_create_test_user() self.client.force_login(user) def test_with_cus...
css)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_tag_cloud_template.py
assertTagGroups
self.assertEqual
variable
49
from typing import List, Type from django.contrib.auth.models import User, AnonymousUser from django.http import HttpResponse from django.template import Template, RequestContext from django.test import TestCase, RequestFactory from bookmarks.middlewares import LinkdingMiddleware from bookmarks.models import Bookmark...
tag)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmark_archived_view.py
assertBulkActionForm
self.assertIsNotNone
variable
33
import urllib.parse from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from bookmarks.models import BookmarkSearch, UserProfile from bookmarks.tests.helpers import ( BookmarkFactoryMixin, BookmarkListTestMixin, TagCloudTestMixin, ) class BookmarkA...
form)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmark_archived_view.py
test_does_not_include_rss_feed
self.assertIsNone
variable
41
import urllib.parse from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from bookmarks.models import BookmarkSearch, UserProfile from bookmarks.tests.helpers import ( BookmarkFactoryMixin, BookmarkListTestMixin, TagCloudTestMixin, ) class BookmarkA...
feed)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmark_details_modal.py
test_website_link
self.assertIsNotNone
variable
63
import datetime import re from django.test import TestCase, override_settings from django.urls import reverse from django.utils import formats, timezone from bookmarks.models import BookmarkAsset, UserProfile from bookmarks.tests.helpers import BookmarkFactoryMixin, HtmlTestMixin class BookmarkDetailsModalTestCase(T...
link)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmark_details_modal.py
test_status
self.assertIsNotNone
variable
64
import datetime import re from django.test import TestCase, override_settings from django.urls import reverse from django.utils import formats, timezone from bookmarks.models import BookmarkAsset, UserProfile from bookmarks.tests.helpers import BookmarkFactoryMixin, HtmlTestMixin class BookmarkDetailsModalTestCase(T...
form)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmark_details_modal.py
test_date_added
self.assertIsNotNone
variable
65
import datetime import re from django.test import TestCase, override_settings from django.urls import reverse from django.utils import formats, timezone from bookmarks.models import BookmarkAsset, UserProfile from bookmarks.tests.helpers import BookmarkFactoryMixin, HtmlTestMixin class BookmarkDetailsModalTestCase(T...
date)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmark_index_view.py
assertBulkActionForm
self.assertIsNotNone
variable
33
import urllib.parse from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from bookmarks.models import BookmarkSearch, UserProfile from bookmarks.tests.helpers import ( BookmarkFactoryMixin, BookmarkListTestMixin, TagCloudTestMixin, ) class BookmarkI...
form)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmark_index_view.py
assertVisibleBundles
self.assertEqual
variable
49
import urllib.parse from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from bookmarks.models import BookmarkSearch, UserProfile from bookmarks.tests.helpers import ( BookmarkFactoryMixin, BookmarkListTestMixin, TagCloudTestMixin, ) class BookmarkI...
href)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmark_index_view.py
test_does_not_include_rss_feed
self.assertIsNone
variable
56
import urllib.parse from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from bookmarks.models import BookmarkSearch, UserProfile from bookmarks.tests.helpers import ( BookmarkFactoryMixin, BookmarkListTestMixin, TagCloudTestMixin, ) class BookmarkI...
feed)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmark_shared_view.py
test_includes_public_shared_rss_feed
self.assertIsNotNone
variable
61
import urllib.parse from typing import List from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from bookmarks.models import Bookmark, BookmarkSearch, Tag, UserProfile from bookmarks.tests.helpers import ( BookmarkFactoryMixin, BookmarkListTestMixin, ...
feed)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmarks_list_template.py
inline_bookmark_description_test
self.assertIsNone
variable
331
import datetime from typing import Type from dateutil.relativedelta import relativedelta from django.contrib.auth.models import AnonymousUser from django.http import HttpResponse from django.template import Template, RequestContext from django.test import TestCase, RequestFactory from django.urls import reverse from d...
tags)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmarks_list_template.py
test_pagination_is_not_sticky_by_default
self.assertIn
variable
389
import datetime from typing import Type from dateutil.relativedelta import relativedelta from django.contrib.auth.models import AnonymousUser from django.http import HttpResponse from django.template import Template, RequestContext from django.test import TestCase, RequestFactory from django.urls import reverse from d...
html)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bundles_index_view.py
test_renders_user_owned_bundles_only
self.assertNotIn
variable
26
from django.test import TestCase from django.urls import reverse from bookmarks.models import BookmarkBundle from bookmarks.tests.helpers import BookmarkFactoryMixin class BundleIndexViewTestCase(TestCase, BookmarkFactoryMixin): def setUp(self) -> None: user = self.get_or_create_test_user() self....
html)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_exporter.py
test_export_bookmarks
self.assertIn
variable
92
from datetime import datetime, timezone from django.test import TestCase from bookmarks.services import exporter from bookmarks.tests.helpers import BookmarkFactoryMixin class ExporterTestCase(TestCase, BookmarkFactoryMixin): def test_export_bookmarks(self): bookmarks = [ self.setup_bookmark(...
html)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_layout.py
test_does_not_link_custom_css_when_empty
self.assertIsNone
variable
20
from django.test import TestCase from django.urls import reverse from bookmarks.models import GlobalSettings from bookmarks.tests.helpers import BookmarkFactoryMixin, HtmlTestMixin class LayoutTestCase(TestCase, BookmarkFactoryMixin, HtmlTestMixin): def setUp(self) -> None: user = self.get_or_create_test...
link)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_preview_image_loader.py
assertImageExists
self.assertEqual
variable
54
import io import os import tempfile from pathlib import Path from unittest import mock from django.conf import settings from django.test import TestCase from bookmarks.services import preview_image_loader mock_image_data = b"mock_image" class PreviewImageLoaderTestCase(TestCase): def setUp(self) -> None: ...
data)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_preview_image_loader.py
test_load_preview_image
self.assertIsNotNone
variable
65
import io import os import tempfile from pathlib import Path from unittest import mock from django.conf import settings from django.test import TestCase from bookmarks.services import preview_image_loader mock_image_data = b"mock_image" class PreviewImageLoaderTestCase(TestCase): def setUp(self) -> None: ...
file)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_settings_export_view.py
test_should_only_export_user_bookmarks
self.assertIn
variable
38
from unittest.mock import patch from django.test import TestCase from django.urls import reverse from bookmarks.models import Bookmark from bookmarks.tests.helpers import BookmarkFactoryMixin class SettingsExportViewTestCase(TestCase, BookmarkFactoryMixin): def setUp(self) -> None: user = self.get_or_cr...
text)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_tag_cloud_template.py
assertTagGroups
self.assertEqual
variable
45
from typing import List, Type from django.contrib.auth.models import User, AnonymousUser from django.http import HttpResponse from django.template import Template, RequestContext from django.test import TestCase, RequestFactory from bookmarks.middlewares import LinkdingMiddleware from bookmarks.models import Bookmark...
tags)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_user_select_tag.py
assertHiddenInput
self.assertIn
variable
44
from django.db.models import QuerySet from django.template import Template, RequestContext from django.test import TestCase, RequestFactory from bookmarks.models import BookmarkSearch, User from bookmarks.tests.helpers import BookmarkFactoryMixin class UserSelectTagTest(TestCase, BookmarkFactoryMixin): def render...
html)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_assets_service.py
test_create_snapshot_asset
self.assertIsNotNone
variable
47
import datetime import gzip import os from datetime import timedelta from unittest import mock from django.core.files.uploadedfile import SimpleUploadedFile from django.test import TestCase from django.utils import timezone from bookmarks.models import BookmarkAsset from bookmarks.services import assets from bookmark...
asset)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmark_details_modal.py
test_displays_title
self.assertIsNotNone
variable
64
import datetime import re from django.test import TestCase, override_settings from django.urls import reverse from django.utils import formats, timezone from bookmarks.models import BookmarkAsset, UserProfile from bookmarks.tests.helpers import BookmarkFactoryMixin, HtmlTestMixin class BookmarkDetailsModalTestCase(T...
title)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmark_search_tag.py
assertHiddenInput
self.assertEqual
variable
34
from bs4 import BeautifulSoup from django.template import Template, RequestContext from django.test import TestCase, RequestFactory from bookmarks.models import BookmarkSearch from bookmarks.tests.helpers import BookmarkFactoryMixin, HtmlTestMixin class BookmarkSearchTagTest(TestCase, BookmarkFactoryMixin, HtmlTestMi...
value)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_bookmarks_list_template.py
test_bookmark_description_max_lines
self.assertIn
variable
391
import datetime from typing import Type from dateutil.relativedelta import relativedelta from django.contrib.auth.models import AnonymousUser from django.http import HttpResponse from django.template import Template, RequestContext from django.test import TestCase, RequestFactory from django.urls import reverse from d...
style)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests/test_tag_cloud_template.py
assertNumSelectedTags
self.assertEqual
variable
54
from typing import List, Type from django.contrib.auth.models import User, AnonymousUser from django.http import HttpResponse from django.template import Template, RequestContext from django.test import TestCase, RequestFactory from bookmarks.middlewares import LinkdingMiddleware from bookmarks.models import Bookmark...
count)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor
sissbruecker/linkding
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
train
train
bookmarks/tests_e2e/helpers.py
assertReloads
self.assertEqual
variable
40
from django.contrib.staticfiles.testing import LiveServerTestCase from playwright.sync_api import BrowserContext, Playwright, Page from playwright.sync_api import expect from bookmarks.tests.helpers import BookmarkFactoryMixin class LinkdingE2ETestCase(LiveServerTestCase, BookmarkFactoryMixin): def setUp(self) ->...
count)
1672dc01521a9ac56ef07e4c2c2c09d3a5c3c44f
177
v2_extractor_at_anchor