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

klieret / RandomFileTree / 5860290764

pending completion
5860290764

Pull #65

github

web-flow
Merge 08dc5839f into 153bfe350
Pull Request #65: Bump pypa/gh-action-pypi-publish from 1.8.8 to 1.8.10

241 of 251 relevant lines covered (96.02%)

4.78 hits per line

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

100.0
/randomfiletree/test/test_cli.py
1
#!/usr/bin/env python3
2

3
import unittest
5✔
4
import subprocess
5✔
5
import tempfile
5✔
6

7
# ours
8
from randomfiletree.cli import parser, cli
5✔
9

10

11
class TestCli(unittest.TestCase):
5✔
12
    def test_cli(self) -> None:
5✔
13
        with tempfile.TemporaryDirectory() as dirname:
5✔
14
            subprocess.run(["randomfiletree", dirname])
5✔
15

16
    def test_cli_module(self) -> None:
5✔
17
        with tempfile.TemporaryDirectory() as dirname:
5✔
18
            subprocess.run(["python3", "-m", "randomfiletree", dirname])
5✔
19

20
    def test_parser(self) -> None:
5✔
21
        p = parser()
5✔
22
        with tempfile.TemporaryDirectory() as dirname:
5✔
23
            cli(p.parse_args([dirname]))
5✔
24
            cli(p.parse_args([dirname, "-f", "0.5", "-d", "3", "-r", "3"]))
5✔
25
            cli(
5✔
26
                p.parse_args(
27
                    [dirname, "-f", "0.5", "-d", "3", "--maxdepth", "2"]
28
                )
29
            )
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