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
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoredefensivev2_parser.py
test_get_team_data
assert
numeric_literal
38
import json from pathlib import Path import pytest from nba_api.stats.endpoints._parsers.boxscoredefensivev2 import ( NBAStatsBoxscoreDefensiveV2Parser, ) from .data.boxscoredefensivev2 import BOXSCOREDEFENSIVEV2_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStat...
2
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoredefensivev2_parser.py
test_parser_with_full_response
assert
numeric_literal
46
import json from pathlib import Path import pytest from nba_api.stats.endpoints._parsers.boxscoredefensivev2 import ( NBAStatsBoxscoreDefensiveV2Parser, ) from .data.boxscoredefensivev2 import BOXSCOREDEFENSIVEV2_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStat...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscorefourfactorsv3_parser.py
test_get_team_data
assert
numeric_literal
38
import json from pathlib import Path import pytest from nba_api.stats.endpoints._parsers.boxscorefourfactorsv3 import ( NBAStatsBoxscoreFourFactorsV3Parser, ) from .data.boxscorefourfactorsv3 import BOXSCOREFOURFACTORSV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return...
2
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscorefourfactorsv3_parser.py
test_parser_with_full_response
assert
numeric_literal
46
import json from pathlib import Path import pytest from nba_api.stats.endpoints._parsers.boxscorefourfactorsv3 import ( NBAStatsBoxscoreFourFactorsV3Parser, ) from .data.boxscorefourfactorsv3 import BOXSCOREFOURFACTORSV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscorehustlev2_parser.py
test_get_team_data
assert
numeric_literal
38
import json import pytest from pathlib import Path from nba_api.stats.endpoints._parsers.boxscorehustlev2 import ( NBAStatsBoxscoreHustleV2Parser, ) def json_fixture(): """Load the BoxScoreHustleV2 JSON fixture.""" fixture_path = ( Path(__file__).parents[4] / "docs" / "nba_api" ...
2
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscorehustlev2_parser.py
test_get_player_data
assert
numeric_literal
39
import json import pytest from pathlib import Path from nba_api.stats.endpoints._parsers.boxscorehustlev2 import ( NBAStatsBoxscoreHustleV2Parser, ) def json_fixture(): """Load the BoxScoreHustleV2 JSON fixture.""" fixture_path = ( Path(__file__).parents[4] / "docs" / "nba_api" ...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscorematchupsv3_parser.py
test_get_players_headers_returns_list
assert
numeric_literal
39
import json import pytest from pathlib import Path from nba_api.stats.endpoints._parsers.boxscorematchupsv3 import ( NBAStatsBoxscoreMatchupsParserV3, ) def json_fixture(): """Load the BoxScoreMatchupsV3 JSON fixture.""" fixture_path = ( Path(__file__).parents[4] / "docs" / "nba_ap...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoremiscv3_parser.py
test_team_data_extraction
assert
numeric_literal
25
import pytest from nba_api.stats.endpoints._parsers.boxscoremiscv3 import ( NBAStatsBoxscoreMiscV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, MISC_STATS_FIELDS, ) from .data.boxscoremiscv3 import BOXSCOREMISCV3_SAMPLE def json_fixture(): """Return the boxscoremiscv3 sample fixture.""" ...
2
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoremiscv3_parser.py
test_player_stats_extracted
assert
numeric_literal
38
import pytest from nba_api.stats.endpoints._parsers.boxscoremiscv3 import ( NBAStatsBoxscoreMiscV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, MISC_STATS_FIELDS, ) from .data.boxscoremiscv3 import BOXSCOREMISCV3_SAMPLE def json_fixture(): """Return the boxscoremiscv3 sample fixture.""" ...
6
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoremiscv3_parser.py
test_player_stats_extracted
assert
numeric_literal
39
import pytest from nba_api.stats.endpoints._parsers.boxscoremiscv3 import ( NBAStatsBoxscoreMiscV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, MISC_STATS_FIELDS, ) from .data.boxscoremiscv3 import BOXSCOREMISCV3_SAMPLE def json_fixture(): """Return the boxscoremiscv3 sample fixture.""" ...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoremiscv3_parser.py
test_player_stats_extracted
assert
numeric_literal
44
import pytest from nba_api.stats.endpoints._parsers.boxscoremiscv3 import ( NBAStatsBoxscoreMiscV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, MISC_STATS_FIELDS, ) from .data.boxscoremiscv3 import BOXSCOREMISCV3_SAMPLE def json_fixture(): """Return the boxscoremiscv3 sample fixture.""" ...
4
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreplayertrackv3_parser.py
test_team_metadata_fields
assert
numeric_literal
26
import pytest from nba_api.stats.endpoints._parsers.boxscoreplayertrackv3 import ( NBAStatsBoxscorePlayerTrackV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, PLAYERTRACK_STATS_FIELDS, ) from .data.boxscoreplayertrackv3 import BOXSCOREPLAYERTRACKV3_SAMPLE def json_fixture(): """Return the ...
5
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreplayertrackv3_parser.py
test_player_metadata_fields
assert
numeric_literal
29
import pytest from nba_api.stats.endpoints._parsers.boxscoreplayertrackv3 import ( NBAStatsBoxscorePlayerTrackV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, PLAYERTRACK_STATS_FIELDS, ) from .data.boxscoreplayertrackv3 import BOXSCOREPLAYERTRACKV3_SAMPLE def json_fixture(): """Return the ...
8
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreplayertrackv3_parser.py
test_get_team_data_has_two_rows
assert
numeric_literal
24
import pytest from nba_api.stats.endpoints._parsers.boxscoreplayertrackv3 import ( NBAStatsBoxscorePlayerTrackV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, PLAYERTRACK_STATS_FIELDS, ) from .data.boxscoreplayertrackv3 import BOXSCOREPLAYERTRACKV3_SAMPLE def json_fixture(): """Return the ...
2
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreplayertrackv3_parser.py
test_parser_with_no_players
assert
numeric_literal
48
import pytest from nba_api.stats.endpoints._parsers.boxscoreplayertrackv3 import ( NBAStatsBoxscorePlayerTrackV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, PLAYERTRACK_STATS_FIELDS, ) from .data.boxscoreplayertrackv3 import BOXSCOREPLAYERTRACKV3_SAMPLE def json_fixture(): """Return the ...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreplayertrackv3_parser.py
test_parser_with_missing_statistics
assert
numeric_literal
62
import pytest from nba_api.stats.endpoints._parsers.boxscoreplayertrackv3 import ( NBAStatsBoxscorePlayerTrackV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, PLAYERTRACK_STATS_FIELDS, ) from .data.boxscoreplayertrackv3 import BOXSCOREPLAYERTRACKV3_SAMPLE def json_fixture(): """Return the ...
1
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscorescoringv3_parser.py
test_get_team_data
assert
numeric_literal
22
import pytest from nba_api.stats.endpoints._parsers.boxscorescoringv3 import ( NBAStatsBoxscoreScoringV3Parser, ) from .data.boxscorescoringv3 import BOXSCORESCORINGV3_SAMPLE def json_fixture(): """Return the BoxScoreScoringV3 sample fixture.""" return BOXSCORESCORINGV3_SAMPLE class TestBoxscoreScoringV...
2
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscorescoringv3_parser.py
test_parser_with_missing_players
assert
numeric_literal
52
import pytest from nba_api.stats.endpoints._parsers.boxscorescoringv3 import ( NBAStatsBoxscoreScoringV3Parser, ) from .data.boxscorescoringv3 import BOXSCORESCORINGV3_SAMPLE def json_fixture(): """Return the BoxScoreScoringV3 sample fixture.""" return BOXSCORESCORINGV3_SAMPLE class TestBoxscoreScoringV...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoresummaryv3.py
test_get_game_summary_data
assert
numeric_literal
24
import pytest from unittest.mock import Mock, patch from pandas import DataFrame from nba_api.stats.endpoints import BoxScoreSummaryV3 from nba_api.stats.endpoints._parsers import NBAStatsBoxscoreSummaryParserV3 from .data.boxscoresummaryv3 import BOXSCORESUMMARYV3_SAMPLE def json_fixture(): """Load the BoxScoreS...
1
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoresummaryv3.py
test_get_game_summary_data
assert
numeric_literal
27
import pytest from unittest.mock import Mock, patch from pandas import DataFrame from nba_api.stats.endpoints import BoxScoreSummaryV3 from nba_api.stats.endpoints._parsers import NBAStatsBoxscoreSummaryParserV3 from .data.boxscoresummaryv3 import BOXSCORESUMMARYV3_SAMPLE def json_fixture(): """Load the BoxScoreS...
3
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoresummaryv3.py
test_get_line_score_data
assert
numeric_literal
24
import pytest from unittest.mock import Mock, patch from pandas import DataFrame from nba_api.stats.endpoints import BoxScoreSummaryV3 from nba_api.stats.endpoints._parsers import NBAStatsBoxscoreSummaryParserV3 from .data.boxscoresummaryv3 import BOXSCORESUMMARYV3_SAMPLE def json_fixture(): """Load the BoxScoreS...
2
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoresummaryv3.py
test_get_last_five_meetings_data
assert
numeric_literal
26
import pytest from unittest.mock import Mock, patch from pandas import DataFrame from nba_api.stats.endpoints import BoxScoreSummaryV3 from nba_api.stats.endpoints._parsers import NBAStatsBoxscoreSummaryParserV3 from .data.boxscoresummaryv3 import BOXSCORESUMMARYV3_SAMPLE def json_fixture(): """Load the BoxScoreS...
5
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoresummaryv3.py
test_expected_data_structure
assert
numeric_literal
41
import pytest from unittest.mock import Mock, patch from pandas import DataFrame from nba_api.stats.endpoints import BoxScoreSummaryV3 from nba_api.stats.endpoints._parsers import NBAStatsBoxscoreSummaryParserV3 from .data.boxscoresummaryv3 import BOXSCORESUMMARYV3_SAMPLE def json_fixture(): """Load the BoxScoreS...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoretraditionalv3_parser.py
test_get_team_data
assert
numeric_literal
18
import pytest from nba_api.stats.endpoints._parsers.boxscoretraditionalv3 import ( NBAStatsBoxscoreTraditionalParserV3, ) from .data.boxscoretraditionalv3 import BOXSCORETRADITIONALV3_SAMPLE def parser(): """Create a parser instance with the JSON fixture.""" return NBAStatsBoxscoreTraditionalParserV3(BOXSC...
2
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoretraditionalv3_parser.py
test_get_start_bench_data
assert
numeric_literal
19
import pytest from nba_api.stats.endpoints._parsers.boxscoretraditionalv3 import ( NBAStatsBoxscoreTraditionalParserV3, ) from .data.boxscoretraditionalv3 import BOXSCORETRADITIONALV3_SAMPLE def parser(): """Create a parser instance with the JSON fixture.""" return NBAStatsBoxscoreTraditionalParserV3(BOXSC...
4
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoretraditionalv3_parser.py
test_parser_with_full_response
assert
numeric_literal
37
import pytest from nba_api.stats.endpoints._parsers.boxscoretraditionalv3 import ( NBAStatsBoxscoreTraditionalParserV3, ) from .data.boxscoretraditionalv3 import BOXSCORETRADITIONALV3_SAMPLE def parser(): """Create a parser instance with the JSON fixture.""" return NBAStatsBoxscoreTraditionalParserV3(BOXSC...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreusagev3_parser.py
test_get_team_data
assert
numeric_literal
25
import pytest from nba_api.stats.endpoints._parsers.boxscoreusagev3 import ( NBAStatsBoxscoreUsageV3Parser, ) from .data.boxscoreusagev3 import BOXSCOREUSAGEV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsBoxscoreUsageV3Parser(BOXSCOREUSAGEV3_SAMPLE) def js...
2
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreusagev3_parser.py
test_parser_with_full_response
assert
numeric_literal
33
import pytest from nba_api.stats.endpoints._parsers.boxscoreusagev3 import ( NBAStatsBoxscoreUsageV3Parser, ) from .data.boxscoreusagev3 import BOXSCOREUSAGEV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsBoxscoreUsageV3Parser(BOXSCOREUSAGEV3_SAMPLE) def js...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_dunkscoreleaders.py
test_json_fixture_structure
assert
numeric_literal
28
from typing import Any, Dict from unittest.mock import Mock, patch import pytest from nba_api.stats.endpoints import DunkScoreLeaders from .data.dunkscoreleaders import DUNKSCORELEADERS_SAMPLE def json_fixture() -> Dict[str, Any]: """Load the DunkScoreLeaders fixture.""" return DUNKSCORELEADERS_SAMPLE class...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_iststandings_parser.py
test_get_iststandings_headers_returns_list
assert
numeric_literal
39
import json import pytest from pathlib import Path from nba_api.stats.endpoints._parsers.iststandings import ( NBAStatsISTStandingsParser, ) def json_fixture(): """Load the ISTStandings JSON fixture.""" fixture_path = ( Path(__file__).parents[4] / "docs" / "nba_api" / "stat...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_playbyplayv3_parser.py
test_get_playbyplay_headers_returns_tuple
assert
numeric_literal
39
import json import pytest from pathlib import Path from nba_api.stats.endpoints._parsers.playbyplayv3 import ( NBAStatsPlayByPlayParserV3, ) def json_fixture(): """Load the PlayByPlayV3 JSON fixture.""" fixture_path = ( Path(__file__).parents[4] / "docs" / "nba_api" / "stat...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scheduleleaguev2.py
test_get_weeks_data_2020
assert
numeric_literal
37
from unittest.mock import Mock, patch import pytest from nba_api.stats.endpoints import ScheduleLeagueV2 from nba_api.stats.endpoints._parsers import NBAStatsScheduleLeagueV2Parser from .data.scheduleleaguev2 import ( SCHEDULELEAGUEV2_2015_16, SCHEDULELEAGUEV2_2020_21, ) def json_fixture_2020(): """Get ...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scheduleleaguev2_parser.py
test_get_weeks_headers_returns_tuple
assert
numeric_literal
39
import json import pytest from pathlib import Path from nba_api.stats.endpoints._parsers.scheduleleaguev2 import ( NBAStatsScheduleLeagueV2Parser, ) def json_fixture(): """Load the ScheduleLeagueV2 JSON fixture.""" fixture_path = ( Path(__file__).parents[4] / "docs" / "nba_api" ...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scoreboardv3.py
test_expected_data_structure
assert
numeric_literal
32
import pytest from unittest.mock import Mock, patch from nba_api.stats.endpoints import ScoreboardV3 from nba_api.stats.endpoints._parsers.scoreboardv3 import ( NBAStatsScoreboardV3Parser, ) from .data.scoreboardv3 import SCOREBOARDV3_SAMPLE class TestScoreboardV3Endpoint: def test_expected_data_structure(s...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scoreboardv3_parser.py
test_get_scoreboard_info_data
assert
numeric_literal
24
import pytest from nba_api.stats.endpoints._parsers.scoreboardv3 import ( NBAStatsScoreboardV3Parser, ) from .data.scoreboardv3 import SCOREBOARDV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsScoreboardV3Parser(SCOREBOARDV3_SAMPLE) def json_fixture(): ...
1
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scoreboardv3_parser.py
test_get_game_header_data
assert
numeric_literal
28
import pytest from nba_api.stats.endpoints._parsers.scoreboardv3 import ( NBAStatsScoreboardV3Parser, ) from .data.scoreboardv3 import SCOREBOARDV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsScoreboardV3Parser(SCOREBOARDV3_SAMPLE) def json_fixture(): ...
3
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scoreboardv3_parser.py
test_get_line_score_data
assert
numeric_literal
24
import pytest from nba_api.stats.endpoints._parsers.scoreboardv3 import ( NBAStatsScoreboardV3Parser, ) from .data.scoreboardv3 import SCOREBOARDV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsScoreboardV3Parser(SCOREBOARDV3_SAMPLE) def json_fixture(): ...
2
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scoreboardv3_parser.py
test_get_broadcasters_data
assert
numeric_literal
25
import pytest from nba_api.stats.endpoints._parsers.scoreboardv3 import ( NBAStatsScoreboardV3Parser, ) from .data.scoreboardv3 import SCOREBOARDV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsScoreboardV3Parser(SCOREBOARDV3_SAMPLE) def json_fixture(): ...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_teamdashlineups.py
test_endpoint_initialization_with_filters
assert
numeric_literal
33
from typing import Any, Dict from unittest.mock import Mock, patch import pytest from nba_api.stats.endpoints import TeamDashLineups from .data.teamdashlineups import TEAMDASHLINEUPS_SAMPLE def json_fixture() -> Dict[str, Any]: """Load the TeamDashLineups fixture.""" return TEAMDASHLINEUPS_SAMPLE class Test...
5
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_teamdashlineups.py
test_json_fixture_structure
assert
numeric_literal
24
from typing import Any, Dict from unittest.mock import Mock, patch import pytest from nba_api.stats.endpoints import TeamDashLineups from .data.teamdashlineups import TEAMDASHLINEUPS_SAMPLE def json_fixture() -> Dict[str, Any]: """Load the TeamDashLineups fixture.""" return TEAMDASHLINEUPS_SAMPLE class Test...
2
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_teamdashlineups.py
test_optional_parameters_defaults
assert
numeric_literal
23
from typing import Any, Dict from unittest.mock import Mock, patch import pytest from nba_api.stats.endpoints import TeamDashLineups from .data.teamdashlineups import TEAMDASHLINEUPS_SAMPLE def json_fixture() -> Dict[str, Any]: """Load the TeamDashLineups fixture.""" return TEAMDASHLINEUPS_SAMPLE class Test...
0
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/test_eventmsgtype.py
test_eventmsgtype
assert
numeric_literal
10
import warnings from nba_api.stats.library.eventmsgtype import EventMsgType def test_eventmsgtype(): with warnings.catch_warnings(record=True) as w: # Invoke Deprecation Warning _ = EventMsgType.UNKNOWN assert len(w) ==
1
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/test_http.py
test_endpoint_uses_global_session
assert
numeric_literal
36
import pytest import requests from unittest.mock import Mock from nba_api.library.http import NBAHTTP from nba_api.stats.endpoints import AllTimeLeadersGrids def mock_session(): session = Mock(spec=requests.Session) # Mock the get method to return a response-like object mock_response = Mock() mock_resp...
5
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscorehustlev2_parser.py
test_get_team_headers
assert
numeric_literal
40
import json import pytest from pathlib import Path from nba_api.stats.endpoints._parsers.boxscorehustlev2 import ( NBAStatsBoxscoreHustleV2Parser, ) def json_fixture(): """Load the BoxScoreHustleV2 JSON fixture.""" fixture_path = ( Path(__file__).parents[4] / "docs" / "nba_api" ...
23
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscorehustlev2_parser.py
test_get_player_headers
assert
numeric_literal
40
import json import pytest from pathlib import Path from nba_api.stats.endpoints._parsers.boxscorehustlev2 import ( NBAStatsBoxscoreHustleV2Parser, ) def json_fixture(): """Load the BoxScoreHustleV2 JSON fixture.""" fixture_path = ( Path(__file__).parents[4] / "docs" / "nba_api" ...
31
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoremiscv3_parser.py
test_team_statistics_values
assert
numeric_literal
35
import pytest from nba_api.stats.endpoints._parsers.boxscoremiscv3 import ( NBAStatsBoxscoreMiscV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, MISC_STATS_FIELDS, ) from .data.boxscoremiscv3 import BOXSCOREMISCV3_SAMPLE def json_fixture(): """Return the boxscoremiscv3 sample fixture.""" ...
25
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoremiscv3_parser.py
test_team_statistics_values
assert
numeric_literal
36
import pytest from nba_api.stats.endpoints._parsers.boxscoremiscv3 import ( NBAStatsBoxscoreMiscV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, MISC_STATS_FIELDS, ) from .data.boxscoremiscv3 import BOXSCOREMISCV3_SAMPLE def json_fixture(): """Return the boxscoremiscv3 sample fixture.""" ...
21
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreplayertrackv3_parser.py
test_playertrack_stats_fields
assert
numeric_literal
45
import pytest from nba_api.stats.endpoints._parsers.boxscoreplayertrackv3 import ( NBAStatsBoxscorePlayerTrackV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, PLAYERTRACK_STATS_FIELDS, ) from .data.boxscoreplayertrackv3 import BOXSCOREPLAYERTRACKV3_SAMPLE def json_fixture(): """Return the ...
21
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoretraditionalv3_parser.py
test_get_team_headers
assert
numeric_literal
19
import pytest from nba_api.stats.endpoints._parsers.boxscoretraditionalv3 import ( NBAStatsBoxscoreTraditionalParserV3, ) from .data.boxscoretraditionalv3 import BOXSCORETRADITIONALV3_SAMPLE def parser(): """Create a parser instance with the JSON fixture.""" return NBAStatsBoxscoreTraditionalParserV3(BOXSC...
26
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoretraditionalv3_parser.py
test_get_player_headers
assert
numeric_literal
19
import pytest from nba_api.stats.endpoints._parsers.boxscoretraditionalv3 import ( NBAStatsBoxscoreTraditionalParserV3, ) from .data.boxscoretraditionalv3 import BOXSCORETRADITIONALV3_SAMPLE def parser(): """Create a parser instance with the JSON fixture.""" return NBAStatsBoxscoreTraditionalParserV3(BOXSC...
34
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoretraditionalv3_parser.py
test_get_team_data
assert
numeric_literal
29
import pytest from nba_api.stats.endpoints._parsers.boxscoretraditionalv3 import ( NBAStatsBoxscoreTraditionalParserV3, ) from .data.boxscoretraditionalv3 import BOXSCORETRADITIONALV3_SAMPLE def parser(): """Create a parser instance with the JSON fixture.""" return NBAStatsBoxscoreTraditionalParserV3(BOXSC...
14
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoretraditionalv3_parser.py
test_get_player_data
assert
numeric_literal
27
import pytest from nba_api.stats.endpoints._parsers.boxscoretraditionalv3 import ( NBAStatsBoxscoreTraditionalParserV3, ) from .data.boxscoretraditionalv3 import BOXSCORETRADITIONALV3_SAMPLE def parser(): """Create a parser instance with the JSON fixture.""" return NBAStatsBoxscoreTraditionalParserV3(BOXSC...
32
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoretraditionalv3_parser.py
test_get_player_data
assert
numeric_literal
28
import pytest from nba_api.stats.endpoints._parsers.boxscoretraditionalv3 import ( NBAStatsBoxscoreTraditionalParserV3, ) from .data.boxscoretraditionalv3 import BOXSCORETRADITIONALV3_SAMPLE def parser(): """Create a parser instance with the JSON fixture.""" return NBAStatsBoxscoreTraditionalParserV3(BOXSC...
12
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoretraditionalv3_parser.py
test_get_player_data
assert
numeric_literal
35
import pytest from nba_api.stats.endpoints._parsers.boxscoretraditionalv3 import ( NBAStatsBoxscoreTraditionalParserV3, ) from .data.boxscoretraditionalv3 import BOXSCORETRADITIONALV3_SAMPLE def parser(): """Create a parser instance with the JSON fixture.""" return NBAStatsBoxscoreTraditionalParserV3(BOXSC...
27
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoretraditionalv3_parser.py
test_get_start_bench_data
assert
numeric_literal
25
import pytest from nba_api.stats.endpoints._parsers.boxscoretraditionalv3 import ( NBAStatsBoxscoreTraditionalParserV3, ) from .data.boxscoretraditionalv3 import BOXSCORETRADITIONALV3_SAMPLE def parser(): """Create a parser instance with the JSON fixture.""" return NBAStatsBoxscoreTraditionalParserV3(BOXSC...
84
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoretraditionalv3_parser.py
test_get_start_bench_data
assert
numeric_literal
31
import pytest from nba_api.stats.endpoints._parsers.boxscoretraditionalv3 import ( NBAStatsBoxscoreTraditionalParserV3, ) from .data.boxscoretraditionalv3 import BOXSCORETRADITIONALV3_SAMPLE def parser(): """Create a parser instance with the JSON fixture.""" return NBAStatsBoxscoreTraditionalParserV3(BOXSC...
38
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoretraditionalv3_parser.py
test_get_start_bench_data
assert
numeric_literal
37
import pytest from nba_api.stats.endpoints._parsers.boxscoretraditionalv3 import ( NBAStatsBoxscoreTraditionalParserV3, ) from .data.boxscoretraditionalv3 import BOXSCORETRADITIONALV3_SAMPLE def parser(): """Create a parser instance with the JSON fixture.""" return NBAStatsBoxscoreTraditionalParserV3(BOXSC...
78
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_dunkscoreleaders.py
test_expected_data_structure
assert
numeric_literal
24
from typing import Any, Dict from unittest.mock import Mock, patch import pytest from nba_api.stats.endpoints import DunkScoreLeaders from .data.dunkscoreleaders import DUNKSCORELEADERS_SAMPLE def json_fixture() -> Dict[str, Any]: """Load the DunkScoreLeaders fixture.""" return DUNKSCORELEADERS_SAMPLE class...
55
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scoreboardv3.py
test_endpoint_supports_custom_timeout
assert
numeric_literal
20
import pytest from unittest.mock import Mock, patch from nba_api.stats.endpoints import ScoreboardV3 from nba_api.stats.endpoints._parsers.scoreboardv3 import ( NBAStatsScoreboardV3Parser, ) from .data.scoreboardv3 import SCOREBOARDV3_SAMPLE class TestScoreboardV3Endpoint: def test_endpoint_supports_custom_...
60
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scoreboardv3_parser.py
test_get_game_leaders_data
assert
numeric_literal
31
import pytest from nba_api.stats.endpoints._parsers.scoreboardv3 import ( NBAStatsScoreboardV3Parser, ) from .data.scoreboardv3 import SCOREBOARDV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsScoreboardV3Parser(SCOREBOARDV3_SAMPLE) def json_fixture(): ...
46
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/test_static_data.py
test_nba_teams
assert
numeric_literal
5
from nba_api.stats.static import teams def test_nba_teams(): assert len(teams.teams) ==
30
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/test_static_data.py
test_wnba_teams
assert
numeric_literal
5
from nba_api.stats.static import teams def test_wnba_teams(): assert len(teams.wnba_teams) ==
13
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoresummaryv3.py
test_get_arena_info_data
assert
numeric_literal
26
import pytest from unittest.mock import Mock, patch from pandas import DataFrame from nba_api.stats.endpoints import BoxScoreSummaryV3 from nba_api.stats.endpoints._parsers import NBAStatsBoxscoreSummaryParserV3 from .data.boxscoresummaryv3 import BOXSCORESUMMARYV3_SAMPLE def json_fixture(): """Load the BoxScoreS...
642
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_teamdashlineups.py
test_optional_parameters_defaults
assert
string_literal
25
from typing import Any, Dict from unittest.mock import Mock, patch import pytest from nba_api.stats.endpoints import TeamDashLineups from .data.teamdashlineups import TEAMDASHLINEUPS_SAMPLE def json_fixture() -> Dict[str, Any]: """Load the TeamDashLineups fixture.""" return TEAMDASHLINEUPS_SAMPLE class Test...
""
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/test_parameters.py
test_season_type_nullable
assert
string_literal
18
from nba_api.stats.library.parameters import ( Season, SeasonType, SeasonTypePlayoffs, SeasonTypeAllStar, SeasonTypeNullable, SeasonTypeAllStarNullable, _NotRequired ) import re def test_season_type_nullable(): assert SeasonTypeNullable.regular == "Regular Season" assert SeasonT...
""
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreusagev3_parser.py
test_get_player_data
assert
string_literal
39
import pytest from nba_api.stats.endpoints._parsers.boxscoreusagev3 import ( NBAStatsBoxscoreUsageV3Parser, ) from .data.boxscoreusagev3 import BOXSCOREUSAGEV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsBoxscoreUsageV3Parser(BOXSCOREUSAGEV3_SAMPLE) def js...
"F"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_teamdashlineups.py
test_optional_parameters_defaults
assert
string_literal
21
from typing import Any, Dict from unittest.mock import Mock, patch import pytest from nba_api.stats.endpoints import TeamDashLineups from .data.teamdashlineups import TEAMDASHLINEUPS_SAMPLE def json_fixture() -> Dict[str, Any]: """Load the TeamDashLineups fixture.""" return TEAMDASHLINEUPS_SAMPLE class Test...
"0"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoresummaryv3.py
test_get_arena_info_data
assert
string_literal
29
import pytest from unittest.mock import Mock, patch from pandas import DataFrame from nba_api.stats.endpoints import BoxScoreSummaryV3 from nba_api.stats.endpoints._parsers import NBAStatsBoxscoreSummaryParserV3 from .data.boxscoresummaryv3 import BOXSCORESUMMARYV3_SAMPLE def json_fixture(): """Load the BoxScoreS...
"WI"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoresummaryv3.py
test_get_arena_info_data
assert
string_literal
30
import pytest from unittest.mock import Mock, patch from pandas import DataFrame from nba_api.stats.endpoints import BoxScoreSummaryV3 from nba_api.stats.endpoints._parsers import NBAStatsBoxscoreSummaryParserV3 from .data.boxscoresummaryv3 import BOXSCORESUMMARYV3_SAMPLE def json_fixture(): """Load the BoxScoreS...
"US"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scheduleleaguev2.py
test_get_weeks_data_2020
assert
string_literal
39
from unittest.mock import Mock, patch import pytest from nba_api.stats.endpoints import ScheduleLeagueV2 from nba_api.stats.endpoints._parsers import NBAStatsScheduleLeagueV2Parser from .data.scheduleleaguev2 import ( SCHEDULELEAGUEV2_2015_16, SCHEDULELEAGUEV2_2020_21, ) def json_fixture_2020(): """Get ...
"00"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scoreboardv3.py
test_endpoint_initialization_without_request
assert
string_literal
19
import pytest from unittest.mock import Mock, patch from nba_api.stats.endpoints import ScoreboardV3 from nba_api.stats.endpoints._parsers.scoreboardv3 import ( NBAStatsScoreboardV3Parser, ) from .data.scoreboardv3 import SCOREBOARDV3_SAMPLE class TestScoreboardV3Endpoint: def test_endpoint_initialization_w...
"00"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scoreboardv3.py
test_endpoint_initialization_with_custom_league
assert
string_literal
21
import pytest from unittest.mock import Mock, patch from nba_api.stats.endpoints import ScoreboardV3 from nba_api.stats.endpoints._parsers.scoreboardv3 import ( NBAStatsScoreboardV3Parser, ) from .data.scoreboardv3 import SCOREBOARDV3_SAMPLE class TestScoreboardV3Endpoint: def test_endpoint_initialization_w...
"10"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scoreboardv3_parser.py
test_get_scoreboard_info_data
assert
string_literal
26
import pytest from nba_api.stats.endpoints._parsers.scoreboardv3 import ( NBAStatsScoreboardV3Parser, ) from .data.scoreboardv3 import SCOREBOARDV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsScoreboardV3Parser(SCOREBOARDV3_SAMPLE) def json_fixture(): ...
"00"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreadvancedv3_parser.py
test_get_team_data
assert
string_literal
45
import json from pathlib import Path import pytest from nba_api.stats.endpoints._parsers.boxscoreadvancedv3 import ( NBAStatsBoxscoreAdvancedV3Parser, ) from .data.boxscoreadvancedv3 import BOXSCOREADVANCEDV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsBox...
"Sun"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreadvancedv3_parser.py
test_get_team_data
assert
string_literal
46
import json from pathlib import Path import pytest from nba_api.stats.endpoints._parsers.boxscoreadvancedv3 import ( NBAStatsBoxscoreAdvancedV3Parser, ) from .data.boxscoreadvancedv3 import BOXSCOREADVANCEDV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsBox...
"CON"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreadvancedv3_parser.py
test_get_team_data
assert
string_literal
47
import json from pathlib import Path import pytest from nba_api.stats.endpoints._parsers.boxscoreadvancedv3 import ( NBAStatsBoxscoreAdvancedV3Parser, ) from .data.boxscoreadvancedv3 import BOXSCOREADVANCEDV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsBox...
"sun"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreadvancedv3_parser.py
test_handles_missing_fields
assert
string_literal
64
import json from pathlib import Path import pytest from nba_api.stats.endpoints._parsers.boxscoreadvancedv3 import ( NBAStatsBoxscoreAdvancedV3Parser, ) from .data.boxscoreadvancedv3 import BOXSCOREADVANCEDV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsBox...
"123"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoredefensivev2_parser.py
test_get_team_data
assert
string_literal
45
import json from pathlib import Path import pytest from nba_api.stats.endpoints._parsers.boxscoredefensivev2 import ( NBAStatsBoxscoreDefensiveV2Parser, ) from .data.boxscoredefensivev2 import BOXSCOREDEFENSIVEV2_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStat...
"Sun"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoredefensivev2_parser.py
test_get_team_data
assert
string_literal
46
import json from pathlib import Path import pytest from nba_api.stats.endpoints._parsers.boxscoredefensivev2 import ( NBAStatsBoxscoreDefensiveV2Parser, ) from .data.boxscoredefensivev2 import BOXSCOREDEFENSIVEV2_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStat...
"CON"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoredefensivev2_parser.py
test_get_team_data
assert
string_literal
47
import json from pathlib import Path import pytest from nba_api.stats.endpoints._parsers.boxscoredefensivev2 import ( NBAStatsBoxscoreDefensiveV2Parser, ) from .data.boxscoredefensivev2 import BOXSCOREDEFENSIVEV2_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStat...
"sun"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoredefensivev2_parser.py
test_handles_missing_fields
assert
string_literal
64
import json from pathlib import Path import pytest from nba_api.stats.endpoints._parsers.boxscoredefensivev2 import ( NBAStatsBoxscoreDefensiveV2Parser, ) from .data.boxscoredefensivev2 import BOXSCOREDEFENSIVEV2_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStat...
"123"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscorefourfactorsv3_parser.py
test_handles_missing_fields
assert
string_literal
64
import json from pathlib import Path import pytest from nba_api.stats.endpoints._parsers.boxscorefourfactorsv3 import ( NBAStatsBoxscoreFourFactorsV3Parser, ) from .data.boxscorefourfactorsv3 import BOXSCOREFOURFACTORSV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return...
"123"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscorescoringv3_parser.py
test_get_team_data
assert
string_literal
33
import pytest from nba_api.stats.endpoints._parsers.boxscorescoringv3 import ( NBAStatsBoxscoreScoringV3Parser, ) from .data.boxscorescoringv3 import BOXSCORESCORINGV3_SAMPLE def json_fixture(): """Return the BoxScoreScoringV3 sample fixture.""" return BOXSCORESCORINGV3_SAMPLE class TestBoxscoreScoringV...
"Sun"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscorescoringv3_parser.py
test_get_team_data
assert
string_literal
34
import pytest from nba_api.stats.endpoints._parsers.boxscorescoringv3 import ( NBAStatsBoxscoreScoringV3Parser, ) from .data.boxscorescoringv3 import BOXSCORESCORINGV3_SAMPLE def json_fixture(): """Return the BoxScoreScoringV3 sample fixture.""" return BOXSCORESCORINGV3_SAMPLE class TestBoxscoreScoringV...
"CON"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscorescoringv3_parser.py
test_get_team_data
assert
string_literal
35
import pytest from nba_api.stats.endpoints._parsers.boxscorescoringv3 import ( NBAStatsBoxscoreScoringV3Parser, ) from .data.boxscorescoringv3 import BOXSCORESCORINGV3_SAMPLE def json_fixture(): """Return the BoxScoreScoringV3 sample fixture.""" return BOXSCORESCORINGV3_SAMPLE class TestBoxscoreScoringV...
"sun"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscorescoringv3_parser.py
test_get_team_data
assert
string_literal
43
import pytest from nba_api.stats.endpoints._parsers.boxscorescoringv3 import ( NBAStatsBoxscoreScoringV3Parser, ) from .data.boxscorescoringv3 import BOXSCORESCORINGV3_SAMPLE def json_fixture(): """Return the BoxScoreScoringV3 sample fixture.""" return BOXSCORESCORINGV3_SAMPLE class TestBoxscoreScoringV...
"SEA"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreusagev3_parser.py
test_get_team_data
assert
string_literal
33
import pytest from nba_api.stats.endpoints._parsers.boxscoreusagev3 import ( NBAStatsBoxscoreUsageV3Parser, ) from .data.boxscoreusagev3 import BOXSCOREUSAGEV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsBoxscoreUsageV3Parser(BOXSCOREUSAGEV3_SAMPLE) def js...
"CLE"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreusagev3_parser.py
test_get_team_data
assert
string_literal
44
import pytest from nba_api.stats.endpoints._parsers.boxscoreusagev3 import ( NBAStatsBoxscoreUsageV3Parser, ) from .data.boxscoreusagev3 import BOXSCOREUSAGEV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsBoxscoreUsageV3Parser(BOXSCOREUSAGEV3_SAMPLE) def js...
"MIN"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreusagev3_parser.py
test_handles_missing_fields
assert
string_literal
51
import pytest from nba_api.stats.endpoints._parsers.boxscoreusagev3 import ( NBAStatsBoxscoreUsageV3Parser, ) from .data.boxscoreusagev3 import BOXSCOREUSAGEV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsBoxscoreUsageV3Parser(BOXSCOREUSAGEV3_SAMPLE) def js...
"123"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scoreboardv3_parser.py
test_get_line_score_data
assert
string_literal
31
import pytest from nba_api.stats.endpoints._parsers.scoreboardv3 import ( NBAStatsScoreboardV3Parser, ) from .data.scoreboardv3 import SCOREBOARDV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsScoreboardV3Parser(SCOREBOARDV3_SAMPLE) def json_fixture(): ...
"CLE"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoredefensivev2_parser.py
test_get_player_data
assert
string_literal
51
import json from pathlib import Path import pytest from nba_api.stats.endpoints._parsers.boxscoredefensivev2 import ( NBAStatsBoxscoreDefensiveV2Parser, ) from .data.boxscoredefensivev2 import BOXSCOREDEFENSIVEV2_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStat...
"7:13"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_scoreboardv3_parser.py
test_get_game_leaders_data
assert
string_literal
28
import pytest from nba_api.stats.endpoints._parsers.scoreboardv3 import ( NBAStatsScoreboardV3Parser, ) from .data.scoreboardv3 import SCOREBOARDV3_SAMPLE def parser(): """Create parser instance with minimal test fixture.""" return NBAStatsScoreboardV3Parser(SCOREBOARDV3_SAMPLE) def json_fixture(): ...
"home"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_teamdashlineups.py
test_endpoint_initialization_with_filters
assert
string_literal
34
from typing import Any, Dict from unittest.mock import Mock, patch import pytest from nba_api.stats.endpoints import TeamDashLineups from .data.teamdashlineups import TEAMDASHLINEUPS_SAMPLE def json_fixture() -> Dict[str, Any]: """Load the TeamDashLineups fixture.""" return TEAMDASHLINEUPS_SAMPLE class Test...
"Base"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoremiscv3_parser.py
test_player_stats_extracted
assert
string_literal
37
import pytest from nba_api.stats.endpoints._parsers.boxscoremiscv3 import ( NBAStatsBoxscoreMiscV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, MISC_STATS_FIELDS, ) from .data.boxscoremiscv3 import BOXSCOREMISCV3_SAMPLE def json_fixture(): """Return the boxscoremiscv3 sample fixture.""" ...
"29:59"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreplayertrackv3_parser.py
test_parser_with_missing_statistics
assert
string_literal
64
import pytest from nba_api.stats.endpoints._parsers.boxscoreplayertrackv3 import ( NBAStatsBoxscorePlayerTrackV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, PLAYERTRACK_STATS_FIELDS, ) from .data.boxscoreplayertrackv3 import BOXSCOREPLAYERTRACKV3_SAMPLE def json_fixture(): """Return the ...
"26:29"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoremiscv3_parser.py
test_team_headers_structure
assert
string_literal
25
import pytest from nba_api.stats.endpoints._parsers.boxscoremiscv3 import ( NBAStatsBoxscoreMiscV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, MISC_STATS_FIELDS, ) from .data.boxscoremiscv3 import BOXSCOREMISCV3_SAMPLE def json_fixture(): """Return the boxscoremiscv3 sample fixture.""" ...
"gameId"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoremiscv3_parser.py
test_team_statistics_values
assert
string_literal
34
import pytest from nba_api.stats.endpoints._parsers.boxscoremiscv3 import ( NBAStatsBoxscoreMiscV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, MISC_STATS_FIELDS, ) from .data.boxscoremiscv3 import BOXSCOREMISCV3_SAMPLE def json_fixture(): """Return the boxscoremiscv3 sample fixture.""" ...
"240:00"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreplayertrackv3_parser.py
test_get_team_headers
assert
string_literal
26
import pytest from nba_api.stats.endpoints._parsers.boxscoreplayertrackv3 import ( NBAStatsBoxscorePlayerTrackV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, PLAYERTRACK_STATS_FIELDS, ) from .data.boxscoreplayertrackv3 import BOXSCOREPLAYERTRACKV3_SAMPLE def json_fixture(): """Return the ...
"gameId"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_boxscoreplayertrackv3_parser.py
test_get_team_data_contains_statistics
assert
string_literal
28
import pytest from nba_api.stats.endpoints._parsers.boxscoreplayertrackv3 import ( NBAStatsBoxscorePlayerTrackV3Parser, TEAM_METADATA_FIELDS, PLAYER_METADATA_FIELDS, PLAYERTRACK_STATS_FIELDS, ) from .data.boxscoreplayertrackv3 import BOXSCOREPLAYERTRACKV3_SAMPLE def json_fixture(): """Return the ...
"240:00"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor
swar/nba_api
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
train
train
tests/unit/stats/endpoints/test_teamdashlineups.py
test_endpoint_initialization_with_filters
assert
string_literal
35
from typing import Any, Dict from unittest.mock import Mock, patch import pytest from nba_api.stats.endpoints import TeamDashLineups from .data.teamdashlineups import TEAMDASHLINEUPS_SAMPLE def json_fixture() -> Dict[str, Any]: """Load the TeamDashLineups fixture.""" return TEAMDASHLINEUPS_SAMPLE class Test...
"Totals"
45f4fec38889f98ab0b5d68bcdd6d3230898c107
23
v2_extractor_at_anchor