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

OpenDataServices / flatten-tool / 6507626273

13 Oct 2023 11:25AM UTC coverage: 42.006% (-53.7%) from 95.72%
6507626273

Pull #433

github

odscjames
New "Geo" optional dependencies

https://github.com/OpenDataServices/flatten-tool/issues/424
Pull Request #433: New "Geo" optional dependencies

38 of 38 new or added lines in 6 files covered. (100.0%)

1466 of 3490 relevant lines covered (42.01%)

4.16 hits per line

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

41.67
/flattentool/tests/test_cli.py
1
# hint: test_argparse is provided by libpythonX.Y-testsuite on ubuntu
2
from test.test_argparse import ArgumentParserError, stderr_to_parser_error
10✔
3

4
import pytest
10✔
5

6
from flattentool import cli
10✔
7

8

9
def test_create_parser():
10✔
10
    """
11
    Command line arguments that should be acceptable
12
    """
13
    parser = cli.create_parser()
×
14
    args = parser.parse_args("create-template -s schema.json".split())
×
15
    assert args.schema == "schema.json"
×
16

17

18
def test_create_parser_missing_required_options():
10✔
19
    """
20
    If you do not supply certain arguments
21
    you should be warned
22
    """
23

24
    parser = cli.create_parser()
×
25
    with pytest.raises(ArgumentParserError) as excinfo:
×
26
        stderr_to_parser_error(parser.parse_args, "create-template".split())
×
27
    assert "required" in excinfo.value.stderr
×
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