summaryrefslogtreecommitdiffstats
path: root/rtemsqual/tests/test_content_sphinx.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-04-30 06:53:40 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-28 10:34:46 +0200
commit3b9b2bdfece46ee5e334869692c066a1cfba96f2 (patch)
treeab589aad015c1c5152e5439e6e717c154e691dc4 /rtemsqual/tests/test_content_sphinx.py
parentitems: Add Item.map() (diff)
downloadrtems-central-3b9b2bdfece46ee5e334869692c066a1cfba96f2.tar.bz2
tests: Fix issues found by flake8
Diffstat (limited to 'rtemsqual/tests/test_content_sphinx.py')
-rw-r--r--rtemsqual/tests/test_content_sphinx.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/rtemsqual/tests/test_content_sphinx.py b/rtemsqual/tests/test_content_sphinx.py
index 3f1363d8..25ccbda0 100644
--- a/rtemsqual/tests/test_content_sphinx.py
+++ b/rtemsqual/tests/test_content_sphinx.py
@@ -97,7 +97,7 @@ def test_license():
with pytest.raises(ValueError):
sc.register_license("x")
sc.register_license("CC-BY-SA-4.0")
- assert "" == sc.content
+ assert sc.content == ""
sc.add_licence_and_copyrights()
assert ".. SPDX-License-Identifier: CC-BY-SA-4.0\n\n" == sc.content
@@ -107,9 +107,13 @@ def test_license_and_copyrights():
with pytest.raises(ValueError):
sc.register_license("x")
sc.register_copyright("Copyright (C) A")
- assert "" == sc.content
+ assert sc.content == ""
sc.add_licence_and_copyrights()
- assert ".. SPDX-License-Identifier: CC-BY-SA-4.0\n\n.. Copyright (C) A\n\n" == sc.content
+ assert sc.content == """.. SPDX-License-Identifier: CC-BY-SA-4.0
+
+.. Copyright (C) A
+
+"""
def test_write(tmpdir):