Skip to content

Commit

Permalink
style: format codes
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Oct 20, 2024
1 parent 3db623d commit 7dceab7
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/endstone_test/command_executor.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import json

from endstone import ColorFormat, Player
from endstone.lang import Translatable as tr
from endstone.command import (
Command,
CommandExecutor,
CommandSender,
ConsoleCommandSender,
)
from endstone.form import *
from endstone.lang import Translatable as tr


class TestCommandExecutor(CommandExecutor):
Expand Down
1 change: 1 addition & 0 deletions src/endstone_test/event_listener.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from endstone import ColorFormat, Server
from endstone.event import *
from endstone.plugin import Plugin

from endstone_test.test_helper import run_tests


Expand Down
4 changes: 1 addition & 3 deletions src/endstone_test/plugin.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from pathlib import Path

import pytest
from endstone.plugin import Plugin

from endstone_test.event_listener import EventListener
from endstone_test.test_helper import run_tests
from endstone_test.test_helper import FixtureInjection, run_tests


class EndstoneTest(Plugin):
Expand Down
2 changes: 1 addition & 1 deletion src/endstone_test/tests/on_load/test_plugin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from endstone.command import CommandSenderWrapper
from endstone.plugin import Plugin

from endstone_test import EndstoneTest
from endstone.command import CommandSenderWrapper


def test_instance(plugin: Plugin):
Expand Down
4 changes: 2 additions & 2 deletions src/endstone_test/tests/on_load/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import pytest
from endstone import Server, __minecraft_version__
from endstone.plugin import Plugin
from endstone.command import CommandSenderWrapper
from endstone.plugin import Plugin


@pytest.fixture
Expand Down Expand Up @@ -49,7 +49,7 @@ def test_online_mode(plugin: Plugin, server: Server) -> None:
assert False


def test_command_wrapper(server: Server):
def test_command_sender_wrapper(server: Server):
messages = []

def on_message(message):
Expand Down
4 changes: 2 additions & 2 deletions src/endstone_test/tests/on_player_join/test_block.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from babel import Locale
from endstone import Player, Server, GameMode
from endstone import GameMode, Player, Server
from endstone.plugin import Plugin
import pytest


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion src/endstone_test/tests/on_player_join/test_command.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from endstone import Player, Server
import pytest
from endstone import Player, Server


@pytest.fixture
Expand Down
4 changes: 2 additions & 2 deletions src/endstone_test/tests/on_player_join/test_player.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from babel import Locale
from endstone import Player, Server, GameMode
from endstone import GameMode, Player, Server
from endstone.plugin import Plugin
import pytest


@pytest.fixture
Expand Down

0 comments on commit 7dceab7

Please sign in to comment.