diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-01-31 18:30:43 +0000 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-01-31 18:30:43 +0000 |
commit | 4c4745af9cc788f94568bb3457f887b8c124f73f (patch) | |
tree | 3cfe20ed3672d3b08de0b1f4cb5d9abf7c19e214 /tests/test_build_dirhtml.py | |
parent | 7395b05b1c03cd675b1d9a232a103934c2348225 (diff) | |
download | sphinx-git-4c4745af9cc788f94568bb3457f887b8c124f73f.tar.gz |
Fix various Ruff errors
Diffstat (limited to 'tests/test_build_dirhtml.py')
-rw-r--r-- | tests/test_build_dirhtml.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_build_dirhtml.py b/tests/test_build_dirhtml.py index a84f68dd3..dc5ab8603 100644 --- a/tests/test_build_dirhtml.py +++ b/tests/test_build_dirhtml.py @@ -28,13 +28,13 @@ def test_dirhtml(app, status, warning): invdata = InventoryFile.load(f, 'path/to', posixpath.join) assert 'index' in invdata.get('std:doc') - assert ('Python', '', 'path/to/', '-') == invdata['std:doc']['index'] + assert invdata['std:doc']['index'] == ('Python', '', 'path/to/', '-') assert 'foo/index' in invdata.get('std:doc') - assert ('Python', '', 'path/to/foo/', '-') == invdata['std:doc']['foo/index'] + assert invdata['std:doc']['foo/index'] == ('Python', '', 'path/to/foo/', '-') assert 'index' in invdata.get('std:label') - assert ('Python', '', 'path/to/#index', '-') == invdata['std:label']['index'] + assert invdata['std:label']['index'] == ('Python', '', 'path/to/#index', '-') assert 'foo' in invdata.get('std:label') - assert ('Python', '', 'path/to/foo/#foo', 'foo/index') == invdata['std:label']['foo'] + assert invdata['std:label']['foo'] == ('Python', '', 'path/to/foo/#foo', 'foo/index') |