mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
test: Fix duplicated testcases
This commit is contained in:
parent
ba496f4d92
commit
017698a2c6
@ -422,7 +422,7 @@ def test_nested_name():
|
|||||||
check('function', 'void f(.A.B a)', {1: "f"})
|
check('function', 'void f(.A.B a)', {1: "f"})
|
||||||
|
|
||||||
|
|
||||||
def test_union_definitions():
|
def test_struct_definitions():
|
||||||
check('struct', '{key}A', {1: 'A'})
|
check('struct', '{key}A', {1: 'A'})
|
||||||
|
|
||||||
|
|
||||||
|
@ -1000,7 +1000,7 @@ def test_build_domain_cpp_warn_template_param_qualified_name(app, status, warnin
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.sphinx(testroot='domain-cpp', confoverrides={'nitpicky': True})
|
@pytest.mark.sphinx(testroot='domain-cpp', confoverrides={'nitpicky': True})
|
||||||
def test_build_domain_cpp_backslash_ok(app, status, warning):
|
def test_build_domain_cpp_backslash_ok_true(app, status, warning):
|
||||||
app.builder.build_all()
|
app.builder.build_all()
|
||||||
ws = filter_warnings(warning, "backslash")
|
ws = filter_warnings(warning, "backslash")
|
||||||
assert len(ws) == 0
|
assert len(ws) == 0
|
||||||
@ -1015,7 +1015,7 @@ def test_build_domain_cpp_semicolon(app, status, warning):
|
|||||||
|
|
||||||
@pytest.mark.sphinx(testroot='domain-cpp',
|
@pytest.mark.sphinx(testroot='domain-cpp',
|
||||||
confoverrides={'nitpicky': True, 'strip_signature_backslash': True})
|
confoverrides={'nitpicky': True, 'strip_signature_backslash': True})
|
||||||
def test_build_domain_cpp_backslash_ok(app, status, warning):
|
def test_build_domain_cpp_backslash_ok_false(app, status, warning):
|
||||||
app.builder.build_all()
|
app.builder.build_all()
|
||||||
ws = filter_warnings(warning, "backslash")
|
ws = filter_warnings(warning, "backslash")
|
||||||
assert len(ws) == 1
|
assert len(ws) == 1
|
||||||
|
Loading…
Reference in New Issue
Block a user