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

NaturalHistoryMuseum / ukbol / 13808523745

12 Mar 2025 09:57AM UTC coverage: 85.664% (+0.5%) from 85.214%
13808523745

push

github

web-flow
Merge pull request #21 from NaturalHistoryMuseum/josh/pantheon

Add PANTHEON data importer

46 of 51 new or added lines in 3 files covered. (90.2%)

1 existing line in 1 file now uncovered.

484 of 565 relevant lines covered (85.66%)

0.86 hits per line

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

0.0
/api/ukbol/cli.py
1
from pathlib import Path
×
2

3
import click
×
4
from flask.cli import FlaskGroup
×
5

6
from ukbol.app import create_app
×
7
from ukbol.data.bold import rebuild_bold_tables
×
NEW
8
from ukbol.data.pantheon import rebuild_pantheon_tables
×
UNCOV
9
from ukbol.data.uksi import rebuild_uksi_tables
×
10

11

12
@click.group(cls=FlaskGroup, create_app=create_app)
×
13
def cli():
×
14
    """
15
    CLI for UKBoL.
16

17
    This is extended off of the Flask CLI, so you can run flask commands through here
18
    too.
19
    """
20
    pass
×
21

22

23
@cli.command("rebuild-uksi")
×
24
def rebuild_uksi():
×
25
    rebuild_uksi_tables()
×
26

27

28
@cli.command("rebuild-bold")
×
29
@click.argument("bold_snapshot", type=click.Path(exists=True, dir_okay=False))
×
30
def rebuild_bold(bold_snapshot: Path):
×
31
    rebuild_bold_tables(bold_snapshot)
×
32

33

NEW
34
@cli.command("rebuild-pantheon")
×
NEW
35
@click.argument(
×
36
    "pantheon_snapshot", type=click.Path(exists=True, dir_okay=False, path_type=Path)
37
)
NEW
38
def rebuild_pantheon(pantheon_snapshot: Path):
×
NEW
39
    rebuild_pantheon_tables(pantheon_snapshot)
×
40

41

42
if __name__ == "__main__":
×
43
    cli()
×
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