• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

iplweb / bpp / 79f9159b-fc2b-4fb0-a03d-b2c486c11307

18 Aug 2025 07:01PM UTC coverage: 39.761% (-5.8%) from 45.554%
79f9159b-fc2b-4fb0-a03d-b2c486c11307

push

circleci

mpasternak
Merge branch 'release/v202508.1190'

15 of 56 new or added lines in 7 files covered. (26.79%)

1686 existing lines in 105 files now uncovered.

15161 of 38130 relevant lines covered (39.76%)

0.4 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

10.0
src/pbn_api/utils.py
1
def rename_dict_key(data, old_key, new_key):
1✔
2
    """
3
    Recursively rename a dictionary key in a dictionary and all nested dictionaries.
4

5
    Args:
6
        data: Dictionary or any data structure that may contain dictionaries
7
        old_key: The key to be renamed
8
        new_key: The new key name
9

10
    Returns:
11
        The modified data structure with renamed keys
12
    """
NEW
13
    if isinstance(data, dict):
×
14
        # Create a new dictionary with renamed keys
NEW
15
        new_dict = {}
×
NEW
16
        for key, value in data.items():
×
17
            # Rename the key if it matches
NEW
18
            new_key_name = new_key if key == old_key else key
×
19
            # Recursively process the value
NEW
20
            new_dict[new_key_name] = rename_dict_key(value, old_key, new_key)
×
NEW
21
        return new_dict
×
NEW
22
    elif isinstance(data, list):
×
23
        # Process each item in the list
NEW
24
        return [rename_dict_key(item, old_key, new_key) for item in data]
×
25
    else:
26
        # Return the value unchanged if it's not a dict or list
NEW
27
        return data
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc