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

zincware / ZnFlow / 10620983105

29 Aug 2024 06:55PM UTC coverage: 96.727% (+0.002%) from 96.725%
10620983105

Pull #106

github

web-flow
Merge 7e6b66c41 into 1d431b041
Pull Request #106: move group updates

53 of 54 new or added lines in 4 files covered. (98.15%)

2364 of 2444 relevant lines covered (96.73%)

3.87 hits per line

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

96.3
/tests/test_graph_build_error.py
1
"""Test for raising an error when building a graph."""
4✔
2

3
import dataclasses
4✔
4

5
import znflow
4✔
6

7

8
@dataclasses.dataclass
4✔
9
class MyNode(znflow.Node):
4✔
10
    value: int
4✔
11

12
    def run(self):
4✔
NEW
13
        pass
×
14

15

16
def test_graph_build_exception():
4✔
17
    graph = znflow.DiGraph()
4✔
18

19
    try:
4✔
20
        with graph:
4✔
21
            node = MyNode(value=42)
4✔
22
            raise ValueError("This is a test")
4✔
23
    except ValueError:
4✔
24
        pass
4✔
25

26
    assert node.uuid in graph
4✔
27

28

29
def test_group_build_exception():
4✔
30
    graph = znflow.DiGraph()
4✔
31

32
    try:
4✔
33
        with graph.group("group") as grp:
4✔
34
            node = MyNode(value=42)
4✔
35
            raise ValueError("This is a test")
4✔
36
    except ValueError:
4✔
37
        pass
4✔
38

39
    assert node.uuid in graph
4✔
40
    assert node.uuid in grp
4✔
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