Skip to content

Tests fail with Sphinx >= 3.5.0 #29

@adamtheturtle

Description

@adamtheturtle

Tests pass with Sphinx <= 3.4.3.

With Sphinx 3.5.0 I get:

test_autobazel_attribute.test_autobazel_rule ... ok
test_autobazel_implementation.test_autobazel_implementation ... ok
test_autobazel_implementation_options.test_autobazel_implementation_options ... FAIL
test_autobazel_macro.test_autobazel_macro ... ok
test_autobazel_options.test_autobazel_options_path ... FAIL
test_autobazel_package.test_autobazel_package ... ok
test_autobazel_package.test_autobazel_package_multiple ... ok
test_autobazel_package_regex.test_autobazel_package ... ok
test_autobazel_rule.test_autobazel_rule ... ok
test_autobazel_target.test_autobazel_target ... ok
test_autobazel_target_regex.test_autobazel_target_regex ... ok
test_autobazel_workspace.test_autobazel_workspace ... ok
test_bazel_implementation.test_bazel_implementation ... ok
test_bazel_macro.test_bazel_macro ... ok
test_bazel_package.test_bazel_package ... ok
test_bazel_package_workspace.test_bazel_package_workspace ... FAIL
test_bazel_rule.test_bazel_rule ... ok
test_bazel_rule_implementation.test_bazel_bazel_rule_implementation ... ok
test_bazel_rule_invocation.test_bazel_rule_invocation ... FAIL
test_bazel_rule_workspace.test_bazel_rule_workspace ... FAIL
test_bazel_target.test_bazel_target ... ok
test_bazel_target_workspace.test_bazel_target_workspace ... FAIL
test_bazel_workspace.test_bazel_workspace ... ok
test_bazel_workspace_path.test_bazel_workspace_path ... ok
test_domain_package.test_domain_package ... ok
test_empty_build_file.test_empty_build_file ... ok
test_empty_workspace_file.test_empty_workspace_file ... ok
test_generic.test_generic ... ok
test_missing_package.test_missing_package ... ok
test_no_python_parsing.test_no_python_parsing ... ok
test_working_without_workspace.test_working_without_workspace ... ok

======================================================================
FAIL: test_autobazel_implementation_options.test_autobazel_implementation_options
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/adam/.virtualenvs/sphinx-bazel/lib/python3.9/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/Users/adam/.virtualenvs/sphinx-bazel/lib/python3.9/site-packages/sphinx_testing/util.py", line 171, in decorator
    return func(*(args + (app, status, warning)), **kwargs)
  File "/Users/adam/Documents/personal/sphinx-bazel/tests/test_autobazel_implementation_options.py", line 25, in test_autobazel_implementation_options
    assert 'implementation: __impl_custom_build_rule' in html
AssertionError

======================================================================
FAIL: test_autobazel_options.test_autobazel_options_path
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/adam/.virtualenvs/sphinx-bazel/lib/python3.9/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/Users/adam/.virtualenvs/sphinx-bazel/lib/python3.9/site-packages/sphinx_testing/util.py", line 171, in decorator
    return func(*(args + (app, status, warning)), **kwargs)
  File "/Users/adam/Documents/personal/sphinx-bazel/tests/test_autobazel_options.py", line 14, in test_autobazel_options_path
    assert 'workspace path' in html
AssertionError

======================================================================
FAIL: test_bazel_package_workspace.test_bazel_package_workspace
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/adam/.virtualenvs/sphinx-bazel/lib/python3.9/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/Users/adam/.virtualenvs/sphinx-bazel/lib/python3.9/site-packages/sphinx_testing/util.py", line 171, in decorator
    return func(*(args + (app, status, warning)), **kwargs)
  File "/Users/adam/Documents/personal/sphinx-bazel/tests/test_bazel_package_workspace.py", line 14, in test_bazel_package_workspace
    assert 'workspace path: /path/to/my/workspace' in html
AssertionError

======================================================================
FAIL: test_bazel_rule_invocation.test_bazel_rule_invocation
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/adam/.virtualenvs/sphinx-bazel/lib/python3.9/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/Users/adam/.virtualenvs/sphinx-bazel/lib/python3.9/site-packages/sphinx_testing/util.py", line 171, in decorator
    return func(*(args + (app, status, warning)), **kwargs)
  File "/Users/adam/Documents/personal/sphinx-bazel/tests/test_bazel_rule_invocation.py", line 14, in test_bazel_rule_invocation
    assert 'invocation: rule(attribute_1, attribute_2)' in html
AssertionError

======================================================================
FAIL: test_bazel_rule_workspace.test_bazel_rule_workspace
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/adam/.virtualenvs/sphinx-bazel/lib/python3.9/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/Users/adam/.virtualenvs/sphinx-bazel/lib/python3.9/site-packages/sphinx_testing/util.py", line 171, in decorator
    return func(*(args + (app, status, warning)), **kwargs)
  File "/Users/adam/Documents/personal/sphinx-bazel/tests/test_bazel_rule_workspace.py", line 13, in test_bazel_rule_workspace
    assert 'workspace: workspace_rule_example' in html
AssertionError

======================================================================
FAIL: test_bazel_target_workspace.test_bazel_target_workspace
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/adam/.virtualenvs/sphinx-bazel/lib/python3.9/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/Users/adam/.virtualenvs/sphinx-bazel/lib/python3.9/site-packages/sphinx_testing/util.py", line 171, in decorator
    return func(*(args + (app, status, warning)), **kwargs)
  File "/Users/adam/Documents/personal/sphinx-bazel/tests/test_bazel_target_workspace.py", line 14, in test_bazel_target_workspace
    assert 'workspace path: /path/to/my/workspace' in html
AssertionError

----------------------------------------------------------------------
XML: /Users/adam/Documents/personal/sphinx-bazel/{envlogdir}/nose-{envname}.xml
----------------------------------------------------------------------
Ran 31 tests in 3.680s

FAILED (failures=6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions