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

JannisNe / timewise / 28235797523

26 Jun 2026 11:42AM UTC coverage: 50.45% (-36.8%) from 87.2%
28235797523

Pull #186

github

JannisNe
hopefully fix coveralls
Pull Request #186: Use `mongomock`, drop MongoDB in testing

104 of 223 new or added lines in 8 files covered. (46.64%)

610 existing lines in 18 files now uncovered.

1178 of 2335 relevant lines covered (50.45%)

0.5 hits per line

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

50.0
/tests/test_plot.py
1
import pytest
1✔
2
from timewise.plot.diagnostic import make_plot
1✔
3
from tests.constants import DATA_DIR
1✔
4
from tests.util import restore_from_bson_dir
1✔
5

6

7
@pytest.mark.parametrize("cutout", ["sdss", "panstarrs"])
1✔
8
def test_make_plot(
1✔
9
    timewise_config_path,
10
    tmp_db_name,
11
    tmp_path,
12
    cutout,
13
    ampel_interface,
14
    mongomock_client,
15
):
16
    mongoexport_path = DATA_DIR / "mongodump"
×
NEW
17
    restore_from_bson_dir(mongoexport_path, tmp_db_name, mongomock_client)
×
18
    indices = [0, 1]
×
19
    make_plot(timewise_config_path, cutout, indices, tmp_path, "mpro")
×
20
    fns = [tmp_path / f"{index}.pdf" for index in indices]
×
21
    assert all([fn.exists() for fn in fns])
×
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