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

POptUS / template_repo / 8647290782

11 Apr 2024 01:10PM UTC coverage: 100.0% (+3.7%) from 96.319%
8647290782

Pull #5

github

jared321
Include links to examples.
Pull Request #5: DRAFT: Improvements based on recent experiences

39 of 39 new or added lines in 11 files covered. (100.0%)

182 of 182 relevant lines covered (100.0%)

1.0 hits per line

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

100.0
/mytemplate_pypkg/src/mytemplate/__load_config_from_json.py
1
import json
1✔
2

3
from pathlib import Path
1✔
4

5

6
def __load_config_from_json():
1✔
7
    """
8
    Load ``my_config`` package data into memory.  It is intended that this
9
    function only be called by package internals as part of setting up its
10
    namespace.
11

12
    :return: Contents of ``my_config.json``
13
    """
14
    PKG_DATA = Path(__file__).resolve().parent.joinpath("PkgData")
1✔
15
    filename = PKG_DATA.joinpath("my_config.json")
1✔
16

17
    with open(filename, "r") as fptr:
1✔
18
        config = json.load(fptr)["my_config"]
1✔
19

20
    return config
1✔
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

© 2025 Coveralls, Inc