apply black to the whole codebase.
This commit is contained in:
parent
420df3340d
commit
82e2c6efac
2 changed files with 175 additions and 448 deletions
|
|
@ -80,8 +80,7 @@ class Editor:
|
|||
self.editor_path = self.tmp_dir_path / "editor.py"
|
||||
self.ori_content_path = self.tmp_dir_path / "original_content"
|
||||
self.new_content_path = self.tmp_dir_path / "new_content"
|
||||
self.base_script = dedent(
|
||||
f"""\
|
||||
self.base_script = dedent(f"""\
|
||||
#!{sys.executable}
|
||||
import sys
|
||||
|
||||
|
|
@ -100,8 +99,7 @@ class Editor:
|
|||
|
||||
with open("{self.new_content_path}", "w") as f:
|
||||
f.write(new_content)
|
||||
"""
|
||||
)
|
||||
""")
|
||||
self._env = os.environ.copy()
|
||||
self._env["EDITOR"] = str(self.editor_path)
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ from libervia.backend.plugins.plugin_sec_pte import NS_PTE
|
|||
from libervia.backend.plugins.plugin_xep_0277 import NS_ATOM
|
||||
from libervia.backend.tools.common import uri
|
||||
|
||||
|
||||
if os.getenv("LIBERVIA_TEST_ENV_E2E") is None:
|
||||
pytest.skip(
|
||||
"skipping end-to-end tests, we are not in a test environment",
|
||||
|
|
|
|||
Loading…
Reference in a new issue