<commit_before>import nose
from ansibledocgen.cli import Cli
import unittest
import sys
import os


class TestCli(unittest.TestCase):

    def test_project(self):
        # Test Specified Path
        sys.argv = [sys.argv[0]]
        sys.argv.append("-p")
        sys.argv.append("testdir")
        cli = Cli()
        assert(cli.project == "testdir/")
        assert(cli.style == "markup")

        # Test No Path Given
        sys.argv = [sys.argv[0]]
        cli = Cli()
        assert(cli.project == "./")
        assert(cli.style == "markup")

    def test_style(self):
        sys.argv = [sys.argv[0]]
        sys.argv.append("-s")
        sys.argv.append("markup")
        cli = Cli()
        assert(cli.style == "markup")

    def test_run(self):
        localdir = os.path.dirname(os.path.realpath(__file__))
        projectunit = os.path.join(localdir, "../integration/projectunit")
        sys.argv = [sys.argv[0]]
        sys.argv.append("-p")
        sys.argv.append(projectunit)
        cli = Cli()
        cli.run()

        assert(os.path.isfile(os.path.join(projectunit, "README.md")))
        assert(os.path.isfile(os.path.join(projectunit, "roles/README.md")))

        assert(
            os.path.isfile(
                os.path.join(
                    projectunit,
                    "rolestest/README.md")))<commit_msg>removed integration tests from unit test<commit_after>import nose
from ansibledocgen.cli import Cli
import unittest
import sys
import os


class TestCli(unittest.TestCase):

    def test_project(self):
        # Test Specified Path
        sys.argv = [sys.argv[0]]
        sys.argv.append("-p")
        sys.argv.append("testdir")
        cli = Cli()
        assert(cli.project == "testdir/")
        assert(cli.style == "markup")

        # Test No Path Given
        sys.argv = [sys.argv[0]]
        cli = Cli()
        assert(cli.project == "./")
        assert(cli.style == "markup")

    def test_style(self):
        sys.argv = [sys.argv[0]]
        sys.argv.append("-s")
        sys.argv.append("markup")
        cli = Cli()
        assert(cli.style == "markup")

{'fraction_non_alphanumeric': 0.1476573592049219, 'fraction_numerical': 0.003312825366777094, 'mean_word_length': 2.02, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5683854', 'n_tokens_mistral': 698, 'n_tokens_neox': 668, 'n_words': 127}