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
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_core.py
test__exit_with_violations
assert
variable
38
from __future__ import annotations import logging import re import sys from pathlib import Path from unittest import mock import pytest from deptry.core import Core from deptry.dependency import Dependency from deptry.dependency_getter.base import DependenciesExtract from deptry.exceptions import UnsupportedPythonVe...
SystemExit
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_core.py
test__exit_with_violations
pytest.raises
variable
35
from __future__ import annotations import logging import re import sys from pathlib import Path from unittest import mock import pytest from deptry.core import Core from deptry.dependency import Dependency from deptry.dependency_getter.base import DependenciesExtract from deptry.exceptions import UnsupportedPythonVe...
SystemExit)
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_core.py
test__log_dependencies
assert
variable
66
from __future__ import annotations import logging import re import sys from pathlib import Path from unittest import mock import pytest from deptry.core import Core from deptry.dependency import Dependency from deptry.dependency_getter.base import DependenciesExtract from deptry.exceptions import UnsupportedPythonVe...
expected_logs
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_core.py
test__get_stdlib_packages_with_stdlib_module_names
assert
complex_expr
29
from __future__ import annotations import logging import re import sys from pathlib import Path from unittest import mock import pytest from deptry.core import Core from deptry.dependency import Dependency from deptry.dependency_getter.base import DependenciesExtract from deptry.exceptions import UnsupportedPythonVe...
sys.stdlib_module_names
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_core.py
test__get_stdlib_packages_without_stdlib_module_names
assert
complex_expr
29
from __future__ import annotations import logging import re import sys from pathlib import Path from unittest import mock import pytest from deptry.core import Core from deptry.dependency import Dependency from deptry.dependency_getter.base import DependenciesExtract from deptry.exceptions import UnsupportedPythonVe...
STDLIBS_PYTHON[f"{sys.version_info[0]}{sys.version_info[1]}"]
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_core.py
test__get_stdlib_packages_unsupported
pytest.raises
func_call
40
from __future__ import annotations import logging import re import sys from pathlib import Path from unittest import mock import pytest from deptry.core import Core from deptry.dependency import Dependency from deptry.dependency_getter.base import DependenciesExtract from deptry.exceptions import UnsupportedPythonVe...
UnsupportedPythonVersionError, match=re.escape( f"Python version {version_info[0]}.{version_info[1]} is not supported. Only versions >= 3.8 are supported." ))
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_dependency.py
test_simple_dependency
assert
string_literal
12
from __future__ import annotations from importlib.metadata import PackageNotFoundError from pathlib import Path from unittest.mock import patch from deptry.dependency import Dependency def test_simple_dependency() -> None: dependency = Dependency("click", Path("pyproject.toml")) assert dependency.name ==
"click"
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_dependency.py
test_read_top_level_from_predefined
assert
collection
20
from __future__ import annotations from importlib.metadata import PackageNotFoundError from pathlib import Path from unittest.mock import patch from deptry.dependency import Dependency def test_read_top_level_from_predefined() -> None: """ Verify that if there are predefined top-level module names it takes ...
{"foo"}
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_dependency.py
test_simple_dependency
assert
collection
14
from __future__ import annotations from importlib.metadata import PackageNotFoundError from pathlib import Path from unittest.mock import patch from deptry.dependency import Dependency def test_simple_dependency() -> None: dependency = Dependency("click", Path("pyproject.toml")) assert dependency.name == "cl...
{"click"}
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_dependency.py
test_create_default_top_level_if_metadata_not_found
assert
string_literal
12
from __future__ import annotations from importlib.metadata import PackageNotFoundError from pathlib import Path from unittest.mock import patch from deptry.dependency import Dependency def test_create_default_top_level_if_metadata_not_found() -> None: dependency = Dependency("Foo-bar", Path("foo/requirements.txt...
"Foo-bar"
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_dependency.py
test_create_default_top_level_if_metadata_not_found
assert
collection
14
from __future__ import annotations from importlib.metadata import PackageNotFoundError from pathlib import Path from unittest.mock import patch from deptry.dependency import Dependency def test_create_default_top_level_if_metadata_not_found() -> None: dependency = Dependency("Foo-bar", Path("foo/requirements.txt...
{"foo_bar"}
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_dependency.py
test_read_top_level_from_top_level_txt
assert
collection
28
from __future__ import annotations from importlib.metadata import PackageNotFoundError from pathlib import Path from unittest.mock import patch from deptry.dependency import Dependency def test_read_top_level_from_top_level_txt() -> None: """ Read the top-levels.txt file """ class MockDistribution: ...
{"foo", "bar"}
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_dependency.py
test_simple_dependency
assert
func_call
13
from __future__ import annotations from importlib.metadata import PackageNotFoundError from pathlib import Path from unittest.mock import patch from deptry.dependency import Dependency def test_simple_dependency() -> None: dependency = Dependency("click", Path("pyproject.toml")) assert dependency.name == "cl...
Path("pyproject.toml")
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_dependency.py
test_create_default_top_level_if_metadata_not_found
assert
func_call
13
from __future__ import annotations from importlib.metadata import PackageNotFoundError from pathlib import Path from unittest.mock import patch from deptry.dependency import Dependency def test_create_default_top_level_if_metadata_not_found() -> None: dependency = Dependency("Foo-bar", Path("foo/requirements.txt...
Path("foo/requirements.txt")
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_dependency.py
test_read_top_level_from_record
assert
collection
39
from __future__ import annotations from importlib.metadata import PackageNotFoundError from pathlib import Path from unittest.mock import patch from deptry.dependency import Dependency def test_read_top_level_from_record() -> None: """ Verify that if top-level.txt not found, an attempt is made to extract top...
{"_black_version", "black", "blackd"}
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_module.py
test_top_level
assert
none_literal
14
from __future__ import annotations from pathlib import Path from deptry.dependency import Dependency from deptry.module import ModuleBuilder def test_top_level() -> None: # Test if no error is raised, argument is accepted. dependency = Dependency("beautifulsoup4", Path("pyproject.toml")) dependency.top_l...
None
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_module.py
test_stdlib
assert
bool_literal
12
from __future__ import annotations from pathlib import Path from deptry.dependency import Dependency from deptry.module import ModuleBuilder def test_stdlib() -> None: module = ModuleBuilder("sys", {"foo", "bar"}, frozenset({"sys"})).build() assert module.package is None assert module.standard_library i...
True
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_module.py
test_simple_import
assert
bool_literal
12
from __future__ import annotations from pathlib import Path from deptry.dependency import Dependency from deptry.module import ModuleBuilder def test_simple_import() -> None: module = ModuleBuilder("click", {"foo", "bar"}, frozenset()).build() assert module.package == "click" assert module.standard_libr...
False
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_module.py
test_simple_import
assert
string_literal
11
from __future__ import annotations from pathlib import Path from deptry.dependency import Dependency from deptry.module import ModuleBuilder def test_simple_import() -> None: module = ModuleBuilder("click", {"foo", "bar"}, frozenset()).build() assert module.package ==
"click"
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_python_file_finder.py
test_matches_ipynb
assert
variable
32
from __future__ import annotations from pathlib import Path import pytest from deptry.python_file_finder import get_all_python_files_in from tests.utils import create_files, run_within_dir @pytest.mark.parametrize( ("ignore_notebooks", "expected"), [ ( False, [Path("dir/subdi...
expected
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_python_file_finder.py
test_duplicates_are_removed
assert
collection
17
from __future__ import annotations from pathlib import Path import pytest from deptry.python_file_finder import get_all_python_files_in from tests.utils import create_files, run_within_dir def test_duplicates_are_removed(tmp_path: Path) -> None: with run_within_dir(tmp_path): create_files([Path("dir/sub...
[Path("dir/subdir/file1.py")]
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_python_file_finder.py
test_simple
assert
collection
28
from __future__ import annotations from pathlib import Path import pytest from deptry.python_file_finder import get_all_python_files_in from tests.utils import create_files, run_within_dir def test_simple(tmp_path: Path) -> None: with run_within_dir(tmp_path): create_files([ Path("dir/subdir...
[ Path("dir/subdir/file1.py"), Path("dir/subdir/file2.py"), Path("dir/subdir/file3.py"), ]
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/test_utils.py
test_load_pyproject_toml
assert
collection
9
from __future__ import annotations from pathlib import Path from deptry.utils import load_pyproject_toml def test_load_pyproject_toml() -> None: assert load_pyproject_toml(Path("tests/data/example_project/pyproject.toml")) ==
{ "tool": { "deptry": {"per_rule_ignores": {"DEP002": ["pkginfo"]}}, "poetry": { "authors": ["test <test@test.com>"], "dependencies": { "click": "^8.1.3", "isort": "^5.10.1", "pkginfo": "^1.8.3", "python": ">=3.7,<4.0", "requests": "^2.28.1", "toml": "^0.10.2", "urllib3": "^1.26.12", }, "description": "A test project",...
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/violations/dep001_missing/test_finder.py
test_local_module
assert
collection
20
from __future__ import annotations from pathlib import Path from deptry.dependency import Dependency from deptry.imports.location import Location from deptry.module import ModuleBuilder, ModuleLocations from deptry.violations import DEP001MissingDependenciesFinder, DEP001MissingDependencyViolation def test_local_mod...
[]
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/violations/dep001_missing/test_finder.py
test_simple
assert
collection
19
from __future__ import annotations from pathlib import Path from deptry.dependency import Dependency from deptry.imports.location import Location from deptry.module import ModuleBuilder, ModuleLocations from deptry.violations import DEP001MissingDependenciesFinder, DEP001MissingDependencyViolation def test_simple() ...
[ DEP001MissingDependencyViolation(module_foobar, location) for location in module_foobar_locations ]
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/violations/dep002_unused/test_finder.py
test_simple_with_ignore
assert
collection
19
from __future__ import annotations from pathlib import Path from deptry.dependency import Dependency from deptry.imports.location import Location from deptry.module import ModuleBuilder, ModuleLocations from deptry.violations import DEP002UnusedDependenciesFinder, DEP002UnusedDependencyViolation def test_simple_with...
[]
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/violations/dep002_unused/test_finder.py
test_simple
assert
collection
20
from __future__ import annotations from pathlib import Path from deptry.dependency import Dependency from deptry.imports.location import Location from deptry.module import ModuleBuilder, ModuleLocations from deptry.violations import DEP002UnusedDependenciesFinder, DEP002UnusedDependencyViolation def test_simple() ->...
[ DEP002UnusedDependencyViolation(dependency_toml, Location(Path("pyproject.toml"))) ]
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/violations/dep003_transitive/test_finder.py
test_simple_with_ignore
assert
collection
20
from __future__ import annotations from pathlib import Path from typing import TYPE_CHECKING from deptry.imports.location import Location from deptry.module import ModuleBuilder, ModuleLocations from deptry.violations import DEP003TransitiveDependenciesFinder from deptry.violations.dep003_transitive.violation import ...
[]
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/violations/dep003_transitive/test_finder.py
test_simple
assert
collection
23
from __future__ import annotations from pathlib import Path from typing import TYPE_CHECKING from deptry.imports.location import Location from deptry.module import ModuleBuilder, ModuleLocations from deptry.violations import DEP003TransitiveDependenciesFinder from deptry.violations.dep003_transitive.violation import ...
[ DEP003TransitiveDependencyViolation(module_platformdirs, location) for location in module_platformdirs_locations ]
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/violations/dep004_misplaced_dev/test_finder.py
test_simple
assert
collection
20
from __future__ import annotations from pathlib import Path from deptry.dependency import Dependency from deptry.imports.location import Location from deptry.module import Module, ModuleLocations from deptry.violations import DEP004MisplacedDevDependencyViolation from deptry.violations.dep004_misplaced_dev.finder imp...
[ DEP004MisplacedDevDependencyViolation(module_foo, location) for location in module_foo_locations ]
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fpgmaas/deptry
53185adfcbfc628ef66705835bf5715a4fab61b0
121
train
train
tests/unit/violations/test_finder.py
test__get_sorted_violations
assert
collection
21
from __future__ import annotations from pathlib import Path from deptry.imports.location import Location from deptry.module import Module from deptry.violations import DEP001MissingDependencyViolation, DEP004MisplacedDevDependencyViolation from deptry.violations.finder import _get_sorted_violations def test__get_sor...
[ DEP001MissingDependencyViolation(Module("foo"), Location(Path("bar.py"), 2, 1)), DEP001MissingDependencyViolation(Module("foo"), Location(Path("bar.py"), 3, 0)), DEP001MissingDependencyViolation(Module("foo"), Location(Path("bar.py"), 3, 1)), DEP001MissingDependencyViolation(Module("foo"), Location(Path("foo.py"), 1,...
53185adfcbfc628ef66705835bf5715a4fab61b0
121
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_api.py
test_request_verify
self.assertEqual
numeric_literal
34
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy import api from blinkpy.blinkpy import Blink, util from blinkpy.auth import Auth import tests.mock_responses as mresp COMMAND_RESPONSE = {"network_id": "12345", "id": "54321"} COMMAND_COMPLETE = {"complete": True, "status_code": 908} C...
200)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_api.py
test_wait_for_command
self.assertFalse
variable
38
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy import api from blinkpy.blinkpy import Blink, util from blinkpy.auth import Auth import tests.mock_responses as mresp COMMAND_RESPONSE = {"network_id": "12345", "id": "54321"} COMMAND_COMPLETE = {"complete": True, "status_code": 908} C...
response)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_api.py
test_request_video_count
self.assertEqual
collection
33
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy import api from blinkpy.blinkpy import Blink, util from blinkpy.auth import Auth import tests.mock_responses as mresp COMMAND_RESPONSE = {"network_id": "12345", "id": "54321"} COMMAND_COMPLETE = {"complete": True, "status_code": 908} C...
{"count": "10"})
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_api.py
test_request_user
self.assertEqual
collection
33
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy import api from blinkpy.blinkpy import Blink, util from blinkpy.auth import Auth import tests.mock_responses as mresp COMMAND_RESPONSE = {"network_id": "12345", "id": "54321"} COMMAND_COMPLETE = {"complete": True, "status_code": 908} C...
{"user": "userid"})
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_api.py
test_request_command_status
self.assertEqual
collection
33
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy import api from blinkpy.blinkpy import Blink, util from blinkpy.auth import Auth import tests.mock_responses as mresp COMMAND_RESPONSE = {"network_id": "12345", "id": "54321"} COMMAND_COMPLETE = {"complete": True, "status_code": 908} C...
{"command": "done"})
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_api.py
test_request_camera_usage
self.assertEqual
collection
33
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy import api from blinkpy.blinkpy import Blink, util from blinkpy.auth import Auth import tests.mock_responses as mresp COMMAND_RESPONSE = {"network_id": "12345", "id": "54321"} COMMAND_COMPLETE = {"complete": True, "status_code": 908} C...
{"cameras": "1111"})
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_api.py
test_request_networks
self.assertEqual
collection
33
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy import api from blinkpy.blinkpy import Blink, util from blinkpy.auth import Auth import tests.mock_responses as mresp COMMAND_RESPONSE = {"network_id": "12345", "id": "54321"} COMMAND_COMPLETE = {"complete": True, "status_code": 908} C...
{"networks": "1234"})
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_api.py
test_request_get_config
self.assertEqual
collection
33
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy import api from blinkpy.blinkpy import Blink, util from blinkpy.auth import Auth import tests.mock_responses as mresp COMMAND_RESPONSE = {"network_id": "12345", "id": "54321"} COMMAND_COMPLETE = {"complete": True, "status_code": 908} C...
{"config": "values"})
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_api.py
test_request_cameras
self.assertEqual
collection
33
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy import api from blinkpy.blinkpy import Blink, util from blinkpy.auth import Auth import tests.mock_responses as mresp COMMAND_RESPONSE = {"network_id": "12345", "id": "54321"} COMMAND_COMPLETE = {"complete": True, "status_code": 908} C...
{"cameras": {"camera_id": 1}})
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_auth.py
test_empty_init
self.assertDictEqual
collection
32
from unittest import mock from unittest import IsolatedAsyncioTestCase from aiohttp import ClientConnectionError from blinkpy.auth import ( Auth, TokenRefreshFailed, BlinkBadResponse, UnauthorizedError, ) import blinkpy.helpers.constants as const import tests.mock_responses as mresp USERNAME = "foobar"...
{})
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_auth.py
test_header_no_token
self.assertEqual
none_literal
30
from unittest import mock from unittest import IsolatedAsyncioTestCase from aiohttp import ClientConnectionError from blinkpy.auth import ( Auth, TokenRefreshFailed, BlinkBadResponse, UnauthorizedError, ) import blinkpy.helpers.constants as const import tests.mock_responses as mresp USERNAME = "foobar"...
None)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_auth.py
test_refresh_token
self.assertEqual
numeric_literal
42
from unittest import mock from unittest import IsolatedAsyncioTestCase from aiohttp import ClientConnectionError from blinkpy.auth import ( Auth, TokenRefreshFailed, BlinkBadResponse, UnauthorizedError, ) import blinkpy.helpers.constants as const import tests.mock_responses as mresp USERNAME = "foobar"...
1234)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_auth.py
test_refresh_token
self.assertEqual
numeric_literal
43
from unittest import mock from unittest import IsolatedAsyncioTestCase from aiohttp import ClientConnectionError from blinkpy.auth import ( Auth, TokenRefreshFailed, BlinkBadResponse, UnauthorizedError, ) import blinkpy.helpers.constants as const import tests.mock_responses as mresp USERNAME = "foobar"...
5678)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_auth.py
test_full_init
self.assertEqual
string_literal
43
from unittest import mock from unittest import IsolatedAsyncioTestCase from aiohttp import ClientConnectionError from blinkpy.auth import ( Auth, TokenRefreshFailed, BlinkBadResponse, UnauthorizedError, ) import blinkpy.helpers.constants as const import tests.mock_responses as mresp USERNAME = "foobar"...
"host")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_auth.py
test_refresh_token
self.assertEqual
string_literal
40
from unittest import mock from unittest import IsolatedAsyncioTestCase from aiohttp import ClientConnectionError from blinkpy.auth import ( Auth, TokenRefreshFailed, BlinkBadResponse, UnauthorizedError, ) import blinkpy.helpers.constants as const import tests.mock_responses as mresp USERNAME = "foobar"...
"test")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_auth.py
test_full_init
self.assertEqual
string_literal
42
from unittest import mock from unittest import IsolatedAsyncioTestCase from aiohttp import ClientConnectionError from blinkpy.auth import ( Auth, TokenRefreshFailed, BlinkBadResponse, UnauthorizedError, ) import blinkpy.helpers.constants as const import tests.mock_responses as mresp USERNAME = "foobar"...
"token")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_auth.py
test_response_not_json
self.assertEqual
string_literal
31
from unittest import mock from unittest import IsolatedAsyncioTestCase from aiohttp import ClientConnectionError from blinkpy.auth import ( Auth, TokenRefreshFailed, BlinkBadResponse, UnauthorizedError, ) import blinkpy.helpers.constants as const import tests.mock_responses as mresp USERNAME = "foobar"...
"foobar")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_auth.py
test_barebones_init
self.assertDictEqual
variable
33
from unittest import mock from unittest import IsolatedAsyncioTestCase from aiohttp import ClientConnectionError from blinkpy.auth import ( Auth, TokenRefreshFailed, BlinkBadResponse, UnauthorizedError, ) import blinkpy.helpers.constants as const import tests.mock_responses as mresp USERNAME = "foobar"...
login_data)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_auth.py
test_full_init
self.assertEqual
string_literal
44
from unittest import mock from unittest import IsolatedAsyncioTestCase from aiohttp import ClientConnectionError from blinkpy.auth import ( Auth, TokenRefreshFailed, BlinkBadResponse, UnauthorizedError, ) import blinkpy.helpers.constants as const import tests.mock_responses as mresp USERNAME = "foobar"...
"region_id")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_auth.py
test_full_init
self.assertEqual
string_literal
45
from unittest import mock from unittest import IsolatedAsyncioTestCase from aiohttp import ClientConnectionError from blinkpy.auth import ( Auth, TokenRefreshFailed, BlinkBadResponse, UnauthorizedError, ) import blinkpy.helpers.constants as const import tests.mock_responses as mresp USERNAME = "foobar"...
"client_id")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_auth.py
test_empty_init
self.assertDictEqual
variable
43
from unittest import mock from unittest import IsolatedAsyncioTestCase from aiohttp import ClientConnectionError from blinkpy.auth import ( Auth, TokenRefreshFailed, BlinkBadResponse, UnauthorizedError, ) import blinkpy.helpers.constants as const import tests.mock_responses as mresp USERNAME = "foobar"...
expected_data)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_auth.py
test_good_response_code
self.assertEqual
collection
31
from unittest import mock from unittest import IsolatedAsyncioTestCase from aiohttp import ClientConnectionError from blinkpy.auth import ( Auth, TokenRefreshFailed, BlinkBadResponse, UnauthorizedError, ) import blinkpy.helpers.constants as const import tests.mock_responses as mresp USERNAME = "foobar"...
{"foo": "bar"})
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_auth.py
test_header
self.assertDictEqual
variable
35
from unittest import mock from unittest import IsolatedAsyncioTestCase from aiohttp import ClientConnectionError from blinkpy.auth import ( Auth, TokenRefreshFailed, BlinkBadResponse, UnauthorizedError, ) import blinkpy.helpers.constants as const import tests.mock_responses as mresp USERNAME = "foobar"...
expected_header)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blink_functions.py
test_download_videos_file
assert
numeric_literal
46
from unittest import mock, IsolatedAsyncioTestCase import time import random from io import BufferedIOBase import aiofiles from blinkpy import blinkpy from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera from blinkpy.helpers.util import get_time, BlinkURLHandler class TestBlinkFunctio...
1
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blink_functions.py
test_get_videos_metadata
self.assertListEqual
collection
46
from unittest import mock, IsolatedAsyncioTestCase import time import random from io import BufferedIOBase import aiofiles from blinkpy import blinkpy from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera from blinkpy.helpers.util import get_time, BlinkURLHandler class TestBlinkFunctio...
[])
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blink_functions.py
test_merge_cameras
self.assertEqual
variable
33
from unittest import mock, IsolatedAsyncioTestCase import time import random from io import BufferedIOBase import aiofiles from blinkpy import blinkpy from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera from blinkpy.helpers.util import get_time, BlinkURLHandler class TestBlinkFunctio...
result)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blink_functions.py
test_parse_downloaded_throttle
self.assertTrue
complex_expr
39
from unittest import mock, IsolatedAsyncioTestCase import time import random from io import BufferedIOBase import aiofiles from blinkpy import blinkpy from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera from blinkpy.helpers.util import get_time, BlinkURLHandler class TestBlinkFunctio...
delta < 0.1)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blink_functions.py
test_download_video_exit
self.assertListEqual
variable
37
from unittest import mock, IsolatedAsyncioTestCase import time import random from io import BufferedIOBase import aiofiles from blinkpy import blinkpy from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera from blinkpy.helpers.util import get_time, BlinkURLHandler class TestBlinkFunctio...
expected_log)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blink_functions.py
test_parse_downloaded_throttle
self.assertTrue
complex_expr
45
from unittest import mock, IsolatedAsyncioTestCase import time import random from io import BufferedIOBase import aiofiles from blinkpy import blinkpy from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera from blinkpy.helpers.util import get_time, BlinkURLHandler class TestBlinkFunctio...
delta >= 0.1)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blink_functions.py
test_do_http_get
self.assertTrue
complex_expr
29
from unittest import mock, IsolatedAsyncioTestCase import time import random from io import BufferedIOBase import aiofiles from blinkpy import blinkpy from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera from blinkpy.helpers.util import get_time, BlinkURLHandler class TestBlinkFunctio...
response is not None)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blink_functions.py
test_refresh
self.assertTrue
func_call
34
from unittest import mock, IsolatedAsyncioTestCase import time import random from io import BufferedIOBase import aiofiles from blinkpy import blinkpy from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera from blinkpy.helpers.util import get_time, BlinkURLHandler class TestBlinkFunctio...
await self.blink.refresh())
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blinkpy.py
test_setup_login_ids
self.assertEqual
numeric_literal
28
from unittest import mock from unittest import IsolatedAsyncioTestCase import time from blinkpy.blinkpy import Blink, BlinkSetupError, LoginError, TokenRefreshFailed from blinkpy.sync_module import BlinkOwl, BlinkLotus from blinkpy.helpers.constants import __version__ SPECIAL = "!@#$%^&*()_+-=[]{}|/<>?,.'" class Test...
1)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blinkpy.py
test_setup_login_ids
self.assertEqual
numeric_literal
29
from unittest import mock from unittest import IsolatedAsyncioTestCase import time from blinkpy.blinkpy import Blink, BlinkSetupError, LoginError, TokenRefreshFailed from blinkpy.sync_module import BlinkOwl, BlinkLotus from blinkpy.helpers.constants import __version__ SPECIAL = "!@#$%^&*()_+-=[]{}|/<>?,.'" class Test...
2)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blinkpy.py
test_blink_mini_cameras_returned
self.assertEqual
collection
49
from unittest import mock from unittest import IsolatedAsyncioTestCase import time from blinkpy.blinkpy import Blink, BlinkSetupError, LoginError, TokenRefreshFailed from blinkpy.sync_module import BlinkOwl, BlinkLotus from blinkpy.helpers.constants import __version__ SPECIAL = "!@#$%^&*()_+-=[]{}|/<>?,.'" class Test...
[])
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blinkpy.py
test_throttle
self.assertEqual
variable
35
from unittest import mock from unittest import IsolatedAsyncioTestCase import time from blinkpy.blinkpy import Blink, BlinkSetupError, LoginError, TokenRefreshFailed from blinkpy.sync_module import BlinkOwl, BlinkLotus from blinkpy.helpers.constants import __version__ SPECIAL = "!@#$%^&*()_+-=[]{}|/<>?,.'" class Test...
now)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blinkpy.py
test_merge_cameras
self.assertEqual
numeric_literal
29
from unittest import mock from unittest import IsolatedAsyncioTestCase import time from blinkpy.blinkpy import Blink, BlinkSetupError, LoginError, TokenRefreshFailed from blinkpy.sync_module import BlinkOwl, BlinkLotus from blinkpy.helpers.constants import __version__ SPECIAL = "!@#$%^&*()_+-=[]{}|/<>?,.'" class Test...
123)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blinkpy.py
test_throttle
self.assertEqual
none_literal
27
from unittest import mock from unittest import IsolatedAsyncioTestCase import time from blinkpy.blinkpy import Blink, BlinkSetupError, LoginError, TokenRefreshFailed from blinkpy.sync_module import BlinkOwl, BlinkLotus from blinkpy.helpers.constants import __version__ SPECIAL = "!@#$%^&*()_+-=[]{}|/<>?,.'" class Test...
None)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blinkpy.py
test_throttle
self.assertEqual
bool_literal
28
from unittest import mock from unittest import IsolatedAsyncioTestCase import time from blinkpy.blinkpy import Blink, BlinkSetupError, LoginError, TokenRefreshFailed from blinkpy.sync_module import BlinkOwl, BlinkLotus from blinkpy.helpers.constants import __version__ SPECIAL = "!@#$%^&*()_+-=[]{}|/<>?,.'" class Test...
True)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blinkpy.py
test_sync_case_insensitive_dict
self.assertEqual
numeric_literal
25
from unittest import mock from unittest import IsolatedAsyncioTestCase import time from blinkpy.blinkpy import Blink, BlinkSetupError, LoginError, TokenRefreshFailed from blinkpy.sync_module import BlinkOwl, BlinkLotus from blinkpy.helpers.constants import __version__ SPECIAL = "!@#$%^&*()_+-=[]{}|/<>?,.'" class Test...
1234)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blinkpy.py
test_merge_cameras
self.assertEqual
string_literal
30
from unittest import mock from unittest import IsolatedAsyncioTestCase import time from blinkpy.blinkpy import Blink, BlinkSetupError, LoginError, TokenRefreshFailed from blinkpy.sync_module import BlinkOwl, BlinkLotus from blinkpy.helpers.constants import __version__ SPECIAL = "!@#$%^&*()_+-=[]{}|/<>?,.'" class Test...
"bar")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blinkpy.py
test_merge_cameras
self.assertEqual
string_literal
32
from unittest import mock from unittest import IsolatedAsyncioTestCase import time from blinkpy.blinkpy import Blink, BlinkSetupError, LoginError, TokenRefreshFailed from blinkpy.sync_module import BlinkOwl, BlinkLotus from blinkpy.helpers.constants import __version__ SPECIAL = "!@#$%^&*()_+-=[]{}|/<>?,.'" class Test...
"foo")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_blinkpy.py
test_initialize_blink_minis
self.assertEqual
bool_literal
54
from unittest import mock from unittest import IsolatedAsyncioTestCase import time from blinkpy.blinkpy import Blink, BlinkSetupError, LoginError, TokenRefreshFailed from blinkpy.sync_module import BlinkOwl, BlinkLotus from blinkpy.helpers.constants import __version__ SPECIAL = "!@#$%^&*()_+-=[]{}|/<>?,.'" class Test...
False)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_camera_functions.py
test_save_recent_clips
assert
numeric_literal
49
import datetime from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as ...
0
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_camera_functions.py
test_save_recent_clips
assert
numeric_literal
73
import datetime from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as ...
2
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_camera_functions.py
test_save_recent_clips_exception
assert
numeric_literal
67
import datetime from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as ...
1
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_camera_functions.py
test_camera_update
self.assertEqual
numeric_literal
62
import datetime from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as ...
4)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_camera_functions.py
test_expire_recent_clips
self.assertEqual
numeric_literal
56
import datetime from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as ...
1)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_camera_functions.py
test_camera_update
self.assertEqual
numeric_literal
59
import datetime from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as ...
68)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_camera_functions.py
test_camera_update
self.assertEqual
numeric_literal
60
import datetime from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as ...
20)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_camera_functions.py
test_camera_update
self.assertEqual
numeric_literal
61
import datetime from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as ...
71)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_camera_functions.py
test_camera_update
self.assertEqual
string_literal
58
import datetime from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as ...
"ok")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_camera_functions.py
test_no_thumbnails
self.assertEqual
none_literal
51
import datetime from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as ...
None)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_camera_functions.py
test_no_thumbnails
self.assertEqual
collection
55
import datetime from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as ...
["1"])
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_camera_functions.py
test_recent_video_clips
self.assertEqual
variable
54
import datetime from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as ...
record1)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_camera_functions.py
test_recent_video_clips
self.assertEqual
variable
55
import datetime from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as ...
record2)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_camera_functions.py
test_motion_detection_enable_disable
self.assertEqual
string_literal
49
import datetime from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as ...
"enable")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_cameras.py
test_mini_missing_attributes
self.assertEqual
collection
47
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as mresp CONFIG = ...
[])
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_cameras.py
test_missing_attributes
self.assertEqual
none_literal
44
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as mresp CONFIG = ...
None)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_cameras.py
test_different_thumb_api
self.assertEqual
variable
48
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as mresp CONFIG = ...
thumb_endpoint)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_cameras.py
test_camera_arm_status
self.assertFalse
complex_expr
51
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as mresp CONFIG = ...
self.camera.arm)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_cameras.py
test_camera_stream
self.assertEqual
string_literal
44
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as mresp CONFIG = ...
"rtsps://foo.bar")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_cameras.py
test_doorbell_camera_arm
self.assertFalse
complex_expr
45
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as mresp CONFIG = ...
doorbell_camera.arm)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_cameras.py
test_new_thumb_url_returned
self.assertEqual
string_literal
57
from unittest import mock from unittest import IsolatedAsyncioTestCase from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell import tests.mock_responses as mresp CONFIG = ...
f"https://rest-test.immedia-semi.com{thumb_return}")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_doorbell_as_sync.py
test_sync_attributes
self.assertEqual
string_literal
35
from unittest import mock from unittest import IsolatedAsyncioTestCase import pytest from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkLotus from blinkpy.camera import BlinkDoorbell class TestBlinkDoorbell(IsolatedAsyncioTestCase): def setUp(se...
"test")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_doorbell_as_sync.py
test_sync_attributes
self.assertEqual
string_literal
36
from unittest import mock from unittest import IsolatedAsyncioTestCase import pytest from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkLotus from blinkpy.camera import BlinkDoorbell class TestBlinkDoorbell(IsolatedAsyncioTestCase): def setUp(se...
"1234")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_doorbell_as_sync.py
test_lotus_start
self.assertEqual
variable
40
from unittest import mock from unittest import IsolatedAsyncioTestCase import pytest from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkLotus from blinkpy.camera import BlinkDoorbell class TestBlinkDoorbell(IsolatedAsyncioTestCase): def setUp(se...
BlinkDoorbell)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_doorbell_as_sync.py
test_lotus_start
self.assertTrue
func_call
38
from unittest import mock from unittest import IsolatedAsyncioTestCase import pytest from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkLotus from blinkpy.camera import BlinkDoorbell class TestBlinkDoorbell(IsolatedAsyncioTestCase): def setUp(se...
await lotus.start())
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_doorbell_as_sync.py
test_lotus_start
self.assertTrue
string_literal
39
from unittest import mock from unittest import IsolatedAsyncioTestCase import pytest from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkLotus from blinkpy.camera import BlinkDoorbell class TestBlinkDoorbell(IsolatedAsyncioTestCase): def setUp(se...
"test" in lotus.cameras)
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor
fronzbot/blinkpy
0849f636f95a8a0fc155299269cdc7452b270071
85
train
train
tests/test_mini_as_sync.py
test_sync_attributes
self.assertEqual
string_literal
35
from unittest import mock from unittest import IsolatedAsyncioTestCase import pytest from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkOwl from blinkpy.camera import BlinkCameraMini class TestBlinkSyncModule(IsolatedAsyncioTestCase): def setUp(...
"test")
0849f636f95a8a0fc155299269cdc7452b270071
85
v2_extractor_at_anchor