コード例 #1
0
    def test_passed_entry_contains_label(self):
        summary = {
            'passed': 1,
            'skipped': 0,
            'failed': 0,
            'undefined': 0,
        }

        assert format_summary('fnord', summary).startswith('1 fnord passed')
コード例 #2
0
ファイル: test_summary.py プロジェクト: biznixcn/behave
    def test_passed_entry_is_pluralised(self):
        summary = {
            'passed': 10,
            'skipped': 0,
            'failed': 0,
            'undefined': 0,
        }

        assert format_summary('fnord', summary).startswith('10 fnords passed')
コード例 #3
0
    def test_passed_entry_is_pluralised(self):
        summary = {
            'passed': 10,
            'skipped': 0,
            'failed': 0,
            'undefined': 0,
        }

        assert format_summary('fnord', summary).startswith('10 fnords passed')
コード例 #4
0
    def test_passed_entry_is_pluralised(self):
        summary = {
            Status.passed.name: 10,
            Status.skipped.name: 0,
            Status.failed.name: 0,
            Status.undefined.name: 0,
        }

        assert format_summary('fnord', summary).startswith('10 fnords passed')
コード例 #5
0
ファイル: test_summary.py プロジェクト: biznixcn/behave
    def test_passed_entry_contains_label(self):
        summary = {
            'passed': 1,
            'skipped': 0,
            'failed': 0,
            'undefined': 0,
        }

        assert format_summary('fnord', summary).startswith('1 fnord passed')
コード例 #6
0
    def test_passed_entry_contains_label(self):
        summary = {
            Status.passed.name: 1,
            Status.skipped.name: 0,
            Status.failed.name: 0,
            Status.undefined.name: 0,
        }

        assert format_summary('fnord', summary).startswith('1 fnord passed')
コード例 #7
0
ファイル: test_summary.py プロジェクト: Abdoctor/behave
    def test_passed_entry_is_pluralised(self):
        summary = {
            Status.passed.name: 10,
            Status.skipped.name: 0,
            Status.failed.name: 0,
            Status.undefined.name: 0,
        }

        assert format_summary('fnord', summary).startswith('10 fnords passed')
コード例 #8
0
ファイル: test_summary.py プロジェクト: Abdoctor/behave
    def test_passed_entry_contains_label(self):
        summary = {
            Status.passed.name: 1,
            Status.skipped.name: 0,
            Status.failed.name: 0,
            Status.undefined.name: 0,
        }

        assert format_summary('fnord', summary).startswith('1 fnord passed')
コード例 #9
0
    def test_missing_fields_are_not_present(self):
        summary = {
            'passed': 10,
            'skipped': 1,
            'failed': 2,
        }

        output = format_summary('fnord', summary)

        assert '1 skipped' in output
        assert '2 failed' in output
        assert 'undefined' not in output
コード例 #10
0
ファイル: test_summary.py プロジェクト: biznixcn/behave
    def test_missing_fields_are_not_present(self):
        summary = {
            'passed': 10,
            'skipped': 1,
            'failed': 2,
        }

        output = format_summary('fnord', summary)

        assert '1 skipped' in output
        assert '2 failed' in output
        assert 'undefined' not in output
コード例 #11
0
    def test_missing_fields_are_not_present(self):
        summary = {
            Status.passed.name: 10,
            Status.skipped.name: 1,
            Status.failed.name: 2,
        }

        output = format_summary('fnord', summary)

        assert '1 skipped' in output
        assert '2 failed' in output
        assert Status.undefined.name not in output
コード例 #12
0
ファイル: test_summary.py プロジェクト: Abdoctor/behave
    def test_missing_fields_are_not_present(self):
        summary = {
            Status.passed.name: 10,
            Status.skipped.name: 1,
            Status.failed.name: 2,
        }

        output = format_summary('fnord', summary)

        assert '1 skipped' in output
        assert '2 failed' in output
        assert Status.undefined.name not in output
コード例 #13
0
    def test_remaining_fields_are_present(self):
        summary = {
            'passed': 10,
            'skipped': 1,
            'failed': 2,
            'undefined': 3,
        }

        output = format_summary('fnord', summary)

        assert '1 skipped' in output
        assert '2 failed' in output
        assert '3 undefined' in output
コード例 #14
0
ファイル: test_summary.py プロジェクト: biznixcn/behave
    def test_remaining_fields_are_present(self):
        summary = {
            'passed': 10,
            'skipped': 1,
            'failed': 2,
            'undefined': 3,
        }

        output = format_summary('fnord', summary)

        assert '1 skipped' in output
        assert '2 failed' in output
        assert '3 undefined' in output