srijan-deepsource / readthedocs.org

Errors detected in .deepsource.toml.

Statement has no effect PYL-W0104
Anti-pattern
Major
4 years ago4 years old
Statement seems to have no effect
1512    def test_sphinx_builder_default(self):
1513        build = self.get_build_config({})
1514        build.validate()
1515        build.sphinx.builder == 'sphinx'1516
1517    def test_sphinx_builder_ignores_default(self):
1518        build = self.get_build_config(
Statement seems to have no effect
1520            {'defaults': {'doctype': 'sphinx_singlehtml'}},
1521        )
1522        build.validate()
1523        build.sphinx.builder == 'sphinx'1524
1525    def test_sphinx_configuration_check_valid(self, tmpdir):
1526        apply_fs(tmpdir, {'conf.py': ''})
Statement seems to have no effect
 75        # By accessing `request.body` we are able to access `request.body` and
 76        # `request.data` later without any problem (mostly black magic).
 77        # See #4940 for more background.
 78        self.request.body  # noqa 79        self.project = None
 80        self.data = self.get_data()
 81        try: