Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 7, 2023
1 parent a4e312f commit ffa4fda
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/esbonio/tests/sphinx-default/test_sd_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,7 @@ async def test_initialization(
# Test some default behaviours.
assert len(client.messages) == 0
assert len(client.log_messages) > 0
assert not any(
[log.message.startswith("[app]") for log in client.log_messages]
)
assert not any([log.message.startswith("[app]") for log in client.log_messages])

assert "sphinx" in configuration
actual = converter.structure(configuration["sphinx"], SphinxConfig)
Expand Down Expand Up @@ -658,7 +656,7 @@ async def test_initialization_missing_conf():
server_command=[sys.executable, "-m", "esbonio"],
)

client= await config.start()
client = await config.start()

try:
await client.initialize_session(
Expand Down Expand Up @@ -725,9 +723,7 @@ async def test_initialization_verbosity(converter):

assert actual.version is not None
assert actual.verbosity == 2
assert any(
[log.message.startswith("[app]") for log in client.log_messages]
)
assert any([log.message.startswith("[app]") for log in client.log_messages])

finally:
await client.shutdown_session()
Expand Down

0 comments on commit ffa4fda

Please sign in to comment.