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

akvo / agriconnect / #137

27 Oct 2025 01:55AM UTC coverage: 91.573% (-0.3%) from 91.887%
#137

push

github

web-flow
Merge pull request #41 from akvo/feature/40-apps-whisper-implementation

Feature/40 apps whisper implementation

676 of 928 branches covered (72.84%)

Branch coverage included in aggregate %.

8213 of 8779 relevant lines covered (93.55%)

0.94 hits per line

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

62.5
/backend/database.py
1
import os
1✔
2

3
from sqlalchemy import create_engine
1✔
4
from sqlalchemy.orm import declarative_base, sessionmaker
1✔
5

6
# Use test database when running tests
7
if os.getenv("TESTING"):
1!
8
    DATABASE_URL = os.getenv(
×
9
        "DATABASE_URL", "postgresql://akvo:password@db:5432/agriconnect"
10
    ).replace("agriconnect", "agriconnect_test")
11
else:
12
    DATABASE_URL = os.getenv(
1✔
13
        "DATABASE_URL", "postgresql://akvo:password@db:5432/agriconnect"
14
    )
15

16
engine = create_engine(DATABASE_URL)
1✔
17
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
1✔
18

19
Base = declarative_base()
1✔
20

21

22
def get_db():
1✔
23
    db = SessionLocal()
×
24
    try:
×
25
        yield db
×
26
    finally:
27
        db.close()
×
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