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

yhttp / yhttp-sqlalchemy / 22146751995

18 Feb 2026 03:43PM UTC coverage: 91.228% (-8.8%) from 100.0%
22146751995

push

github

pylover
Feature: Boolean metadata field and migrated to yhttp >= 7.2

5 of 5 new or added lines in 2 files covered. (100.0%)

10 existing lines in 1 file now uncovered.

104 of 114 relevant lines covered (91.23%)

2.74 hits per line

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

52.38
/yhttp/ext/sqlalchemy/cli.py
1
from sqlalchemy import text
3✔
2
from easycli import SubCommand
3✔
3

4

5
class CreateObjectsCommand(SubCommand):
3✔
6
    __command__ = 'create'
3✔
7
    __aliases__ = ['c']
3✔
8

9
    def __call__(self, args):
3✔
UNCOV
10
        db = args.application.db
×
UNCOV
11
        with db:
×
UNCOV
12
            db.create_objects()
×
UNCOV
13
            self.report_objects(args)
×
14

15
    def report_objects(self, args):
3✔
UNCOV
16
        app = args.application
×
UNCOV
17
        with app.db.engine.connect() as conn:
×
UNCOV
18
            result = conn.execute(text('''
×
19
                SELECT relname, relkind
20
                FROM pg_class
21
                WHERE relname !~ '^(pg|sql)_' AND relkind != 'v';
22
            '''))
23

UNCOV
24
            print('Following objects has been created successfully:')
×
UNCOV
25
            for name, kind in result.fetchall():
×
UNCOV
26
                print(kind, name)
×
27

28

29
class DatabaseObjectsCommand(SubCommand):
3✔
30
    __command__ = 'objects'
3✔
31
    __aliases__ = ['obj', 'o']
3✔
32
    __arguments__ = [
3✔
33
        CreateObjectsCommand,
34
    ]
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