mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
fix formatting issues
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
fa74a26042
commit
eb83e00011
134 files changed
+598
-720
No files matched your search
@@ -30,7 +30,6 @@ from plinth.utils import YAMLFile, is_user_admin
|
||||
|
||||
class TestIsAdminUser:
|
||||
"""Test class for is_user_admin utility."""
|
||||
|
||||
@staticmethod
|
||||
@pytest.fixture(name='web_request')
|
||||
def fixture_web_request():
|
||||
@@ -113,9 +112,7 @@ class TestYAMLFileUtil:
|
||||
|
||||
with open(test_file.name, 'w') as conf_file:
|
||||
conf_file.write(
|
||||
ruamel.yaml.round_trip_dump({
|
||||
'property1': self.kv_pair
|
||||
}))
|
||||
ruamel.yaml.round_trip_dump({'property1': self.kv_pair}))
|
||||
|
||||
with YAMLFile(test_file.name) as file_conf:
|
||||
file_conf['property2'] = self.kv_pair
|
||||
|
||||
Reference in new issue
Block a user