zuul-jobs/roles/tox/library/test_tox_parse_output.py
Tobias Henkel 99ea9c94a0
Add test cases for tox line comment parsing
Tox line comment parsing had a few side effects at first so add
testing to it.

Change-Id: I9eb2aa00d6e467bd170fad80598728aec6949ee6
2020-04-03 19:34:24 +02:00

34 lines
986 B
Python

# Copyright (C) 2020 VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
#
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import testtools
from tests import generate_dynamic_comments_tests
from .tox_parse_output import extract_file_comments
TESTS_DIR = os.path.join(os.path.dirname(__file__),
'test-cases')
class TestToxParseOutput(testtools.TestCase):
pass
generate_dynamic_comments_tests(TestToxParseOutput, TESTS_DIR,
extract_file_comments)