Format code imports
This commit is contained in:
parent
92834aacd0
commit
a461a97576
361 changed files with 1019 additions and 754 deletions
|
|
@ -3,7 +3,7 @@ Crafting - Griatch 2020
|
|||
|
||||
"""
|
||||
|
||||
from .crafting import craft # noqa
|
||||
from .crafting import CraftingRecipe # noqa
|
||||
from .crafting import CraftingRecipeBase # noqa
|
||||
from .crafting import craft # noqa
|
||||
from .crafting import CraftingError, CraftingValidationError # noqa
|
||||
|
|
|
|||
|
|
@ -121,11 +121,12 @@ a full example of the components for creating a sword from base components.
|
|||
|
||||
import functools
|
||||
from copy import copy
|
||||
from evennia.utils.utils import iter_to_str, callables_from_module, inherits_from, make_iter
|
||||
|
||||
from evennia.commands.cmdset import CmdSet
|
||||
from evennia.commands.command import Command
|
||||
from evennia.prototypes.spawner import spawn
|
||||
from evennia.utils.create import create_object
|
||||
from evennia.utils.utils import callables_from_module, inherits_from, iter_to_str, make_iter
|
||||
|
||||
_RECIPE_CLASSES = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,10 +69,11 @@ just mocked for the example.
|
|||
|
||||
"""
|
||||
|
||||
from random import random, randint
|
||||
from evennia.commands.command import Command, InterruptCommand
|
||||
from .crafting import craft, CraftingRecipe, CraftingValidationError
|
||||
from random import randint, random
|
||||
|
||||
from evennia.commands.command import Command, InterruptCommand
|
||||
|
||||
from .crafting import CraftingRecipe, CraftingValidationError, craft
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Sword recipe
|
||||
|
|
|
|||
|
|
@ -4,11 +4,14 @@ Unit tests for the crafting system contrib.
|
|||
"""
|
||||
|
||||
from unittest import mock
|
||||
from django.test import override_settings
|
||||
|
||||
from django.core.exceptions import ObjectDoesNotExist
|
||||
from django.test import override_settings
|
||||
|
||||
from evennia.commands.default.tests import BaseEvenniaCommandTest
|
||||
from evennia.utils.test_resources import BaseEvenniaTestCase
|
||||
from evennia.utils.create import create_object
|
||||
from evennia.utils.test_resources import BaseEvenniaTestCase
|
||||
|
||||
from . import crafting, example_recipes
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue