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

TOMToolkit / tom_base / 6713509976

31 Oct 2023 11:13PM UTC coverage: 86.773% (+0.7%) from 86.072%
6713509976

push

github-actions

web-flow
Merge pull request #699 from TOMToolkit/dev

Multi-Feature Merge. Please Review Carefully.

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

8253 of 9511 relevant lines covered (86.77%)

0.87 hits per line

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

62.5
/tom_alerts/brokers/hermes.py
1
from crispy_forms.layout import Layout, HTML
1✔
2

3
from tom_alerts.alerts import GenericBroker, GenericQueryForm, GenericAlert
1✔
4

5

6
class HermesQueryForm(GenericQueryForm):
1✔
7
    def __init__(self, *args, **kwargs):
1✔
8
        super().__init__(*args, **kwargs)
×
9
        self.helper.inputs.pop()
×
10
        self.helper.layout = Layout(
×
11
            HTML('''
12
                <p>
13
                This plugin is a stub for the Hermes Broker plugin. In order to install the full plugin, please see the
14
                instructions <a href="https://github.com/TOMToolkit/tom_hermes" target="_blank">here</a>.
15
                </p>
16
            '''),
17
            HTML('''<a class="btn btn-outline-primary" href={% url 'tom_alerts:list' %}>Back</a>''')
18
        )
19

20

21
class HermesBroker(GenericBroker):
1✔
22
    name = 'Hermes'
1✔
23
    form = HermesQueryForm
1✔
24

25
    def fetch_alerts(self, parameters):
1✔
26
        return iter([]), ''
×
27

28
    def process_reduced_data(self, target, alert=None):
1✔
29
        return
×
30

31
    def to_generic_alert(self, alert):
1✔
32
        return GenericAlert(
×
33
            timestamp=None,
34
            url=None,
35
            id=None,
36
            name=None,
37
            ra=None,
38
            dec=None,
39
            mag=None,
40
            score=None
41
        )
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