mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-30 04:13:06 +02:00
tests: Re-format codegen.py with black
This is just the result of running `black $(git ls-files '*.py')`. For some reason, the `sh-and-py-check` CI job didn’t run on merge request !3751, so this non-standard formatting slipped through onto `main`. See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3754#note_1939914 Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
b96778ee43
commit
91c82b046e
@ -543,7 +543,9 @@ G_END_DECLS
|
||||
self.assertEqual("", res.out)
|
||||
with open("test-org.project.Bar.Frobnicator.rst", "r") as f:
|
||||
rst = f.read()
|
||||
self.assertIn(textwrap.dedent("""
|
||||
self.assertIn(
|
||||
textwrap.dedent(
|
||||
"""
|
||||
-------
|
||||
Methods
|
||||
-------
|
||||
@ -558,7 +560,10 @@ G_END_DECLS
|
||||
RandomMethod ()
|
||||
|
||||
|
||||
A random test method."""), rst)
|
||||
A random test method."""
|
||||
),
|
||||
rst,
|
||||
)
|
||||
|
||||
def test_generate_rst_signal(self):
|
||||
"""Test generating a signal documentation with the rst generator."""
|
||||
@ -582,7 +587,9 @@ G_END_DECLS
|
||||
self.assertEqual("", res.out)
|
||||
with open("test-org.project.Bar.Frobnicator.rst", "r") as f:
|
||||
rst = f.read()
|
||||
self.assertIn(textwrap.dedent("""
|
||||
self.assertIn(
|
||||
textwrap.dedent(
|
||||
"""
|
||||
-------
|
||||
Signals
|
||||
-------
|
||||
@ -597,7 +604,10 @@ G_END_DECLS
|
||||
RandomSignal ()
|
||||
|
||||
|
||||
A random test signal."""), rst)
|
||||
A random test signal."""
|
||||
),
|
||||
rst,
|
||||
)
|
||||
|
||||
def test_generate_rst_property(self):
|
||||
"""Test generating a property documentation with the rst generator."""
|
||||
@ -621,7 +631,9 @@ G_END_DECLS
|
||||
self.assertEqual("", res.out)
|
||||
with open("test-org.project.Bar.Frobnicator.rst", "r") as f:
|
||||
rst = f.read()
|
||||
self.assertIn(textwrap.dedent("""
|
||||
self.assertIn(
|
||||
textwrap.dedent(
|
||||
"""
|
||||
----------
|
||||
Properties
|
||||
----------
|
||||
@ -636,7 +648,10 @@ G_END_DECLS
|
||||
RandomProperty readable s
|
||||
|
||||
|
||||
A random test property."""), rst)
|
||||
A random test property."""
|
||||
),
|
||||
rst,
|
||||
)
|
||||
|
||||
@unittest.skipIf(on_win32(), "requires /dev/stdout")
|
||||
def test_glib_min_required_invalid(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user